| 12 | static BOOL OnReset(BOOL final); |
| 13 | |
| 14 | inline void SetTimer(OSAlarm* alarm) |
| 15 | { |
| 16 | OSTime delta; |
| 17 | |
| 18 | delta = alarm->fire - __OSGetSystemTime(); |
| 19 | if (delta < 0) |
| 20 | { |
| 21 | PPCMtdec(0); |
| 22 | } |
| 23 | else if (delta < 0x80000000) |
| 24 | { |
| 25 | PPCMtdec((u32)delta); |
| 26 | } |
| 27 | else |
| 28 | { |
| 29 | PPCMtdec(0x7fffffff); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | void OSInitAlarm(void) |
| 34 | { |
no test coverage detected