summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/kernel-as3525.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/kernel-as3525.c')
-rw-r--r--firmware/target/arm/as3525/kernel-as3525.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/firmware/target/arm/as3525/kernel-as3525.c b/firmware/target/arm/as3525/kernel-as3525.c
index 73031b9eb5..c534d5e130 100644
--- a/firmware/target/arm/as3525/kernel-as3525.c
+++ b/firmware/target/arm/as3525/kernel-as3525.c
@@ -32,12 +32,9 @@ void INT_TIMER2(void)
void tick_start(unsigned int interval_in_ms)
{
-#ifdef BOOTLOADER
- (void) interval_in_ms;
-#else
int phi = 0; /* prescaler bits */
int prescale = 1;
- int cycles = 64000 * interval_in_ms; /* pclk is clocked at 64MHz */
+ int cycles = 1000 * interval_in_ms; /* pclk is clocked at 64MHz */
while(cycles > 0x10000)
{
@@ -57,5 +54,4 @@ void tick_start(unsigned int interval_in_ms)
/* /!\ bit 4 (reserved) must not be modified
* periodic mode, interrupt enabled, 16 bits counter */
TIMER2_CONTROL = (TIMER2_CONTROL & (1<<4)) | 0xe0 | (phi<<2);
-#endif
}