diff options
Diffstat (limited to 'firmware/timer.c')
-rw-r--r-- | firmware/timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/timer.c b/firmware/timer.c index 8523805890..84d0359008 100644 --- a/firmware/timer.c +++ b/firmware/timer.c | |||
@@ -60,7 +60,7 @@ void TIMER2(void) | |||
60 | } | 60 | } |
61 | if (pfn_timer != NULL) | 61 | if (pfn_timer != NULL) |
62 | { | 62 | { |
63 | cycles_new = -1; | 63 | cycles_new = -1; |
64 | /* "lock" the variable, in case timer_set_period() | 64 | /* "lock" the variable, in case timer_set_period() |
65 | * is called within pfn_timer() */ | 65 | * is called within pfn_timer() */ |
66 | pfn_timer(); | 66 | pfn_timer(); |
@@ -151,7 +151,7 @@ static bool timer_set(long cycles, bool start) | |||
151 | TCN1 = 0; /* reset the timer */ | 151 | TCN1 = 0; /* reset the timer */ |
152 | TER1 = 0xff; /* clear all events */ | 152 | TER1 = 0xff; /* clear all events */ |
153 | #elif CONFIG_CPU == PP5020 || CONFIG_CPU == PP5002 | 153 | #elif CONFIG_CPU == PP5020 || CONFIG_CPU == PP5002 |
154 | if (cycles > 0x20000000) | 154 | if (cycles > 0x20000000 || cycles < 2) |
155 | return false; | 155 | return false; |
156 | 156 | ||
157 | if (start) | 157 | if (start) |