mirror of
https://github.com/rvtr/ctr_firmware.git
synced 2025-10-31 07:51:08 -04:00
tickが遅いのでお手軽にPRESCALERを変更
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@200 b871894f-2f95-9b40-918c-086798483c85
This commit is contained in:
parent
adc2aa4588
commit
fd766e4425
@ -64,7 +64,7 @@ extern void i_osSetTick( u64 );
|
||||
//---- conversion tick count <-> real time count
|
||||
#ifdef SDK_ARM11
|
||||
#define OS_TICK_CLOCK HW_CPU_CLOCK
|
||||
#define OS_TICK_PRESCALE 1
|
||||
#define OS_TICK_PRESCALE 2
|
||||
#define OS_TICK_HI_SHIFT 28 // 2の累乗単位でチック管理するのであれば32は指定できない(初期値0では割り込みが発生しないため、最大31)
|
||||
#define OS_TICK_LO_MASK ((u32)(OS_TICK_HI_LSB-1))
|
||||
#define OS_TICK_LO_MSB ((u32)(OS_TICK_HI_LSB>>1))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user