small fix.

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@124 b871894f-2f95-9b40-918c-086798483c85
This commit is contained in:
nakasima 2008-12-18 08:31:15 +00:00
parent bdb55f2e6a
commit 7d09772c84

View File

@ -82,7 +82,7 @@ static void i_osSetTimer(OSAlarm *alarm)
// osEnterTimerCallback(OSi_ALARM_TIMER, i_osAlarmHandler, NULL); // osEnterTimerCallback(OSi_ALARM_TIMER, i_osAlarmHandler, NULL);
//---- set count and let timer be enable //---- set count and let timer be enable
if (delta < 0) if (delta <= 0)
{ {
#ifdef SDK_ARM11 #ifdef SDK_ARM11
timerCount = 1; timerCount = 1;
@ -178,11 +178,9 @@ void osEndAlarm(void)
SDK_ASSERTMSG(!i_osAlarmQueue.head, SDK_ASSERTMSG(!i_osAlarmQueue.head,
"osEndAlarm: Cannot end alarm system while using alarm."); "osEndAlarm: Cannot end alarm system while using alarm.");
#ifdef SDK_ARM9
//---- unset timer reservation by OS //---- unset timer reservation by OS
SDK_ASSERT(i_osIsTimerReserved(OSi_ALARM_TIMER)); SDK_ASSERT(i_osIsTimerReserved(OSi_ALARM_TIMER));
i_osUnsetTimerReserved(OSi_ALARM_TIMER); i_osUnsetTimerReserved(OSi_ALARM_TIMER);
#endif // SDK_ARM9
i_osUseAlarm = FALSE; i_osUseAlarm = FALSE;
} }