X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Ftimer.c;h=62f272ddc93274db3b20598edc425ebf7ba9ba56;hb=12a865a058c2c3da0e4da685158f3a506ffad876;hp=a411dc4e8be29775aed3cc959f5af49b62f32c00;hpb=0088022a7741d4636b054f47c67be353d9242af2;p=bertos.git diff --git a/bertos/drv/timer.c b/bertos/drv/timer.c index a411dc4e..62f272dd 100644 --- a/bertos/drv/timer.c +++ b/bertos/drv/timer.c @@ -402,17 +402,14 @@ void timer_init(void) } -#if (ARCH & ARCH_EMUL) +#if (ARCH & ARCH_EMUL) || (CPU_ARM_AT91) /** - * Stop timer (only used by emulator) + * Stop timer */ void timer_cleanup(void) { MOD_CLEANUP(timer); timer_hw_cleanup(); - - // Hmmm... apparently, the demo app does not cleanup properly - //ASSERT(LIST_EMPTY(&timers_queue)); } -#endif /* ARCH_EMUL */ +#endif