1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/lm4f120: Update to match timer_init API change

This commit is contained in:
Joakim Nohlgård 2015-10-04 00:21:09 +02:00
parent 77fbe188e7
commit 4a873d4061

View File

@ -66,14 +66,14 @@ static inline unsigned int _llvalue_to_scaled_value(unsigned long long corrected
return scaledv;
}
int timer_init(tim_t dev, unsigned int us_per_tick, void (*callback)(int))
int timer_init(tim_t dev, unsigned long freq, void (*callback)(int))
{
if (dev >= TIMER_NUMOF){
return -1;
}
config[dev].cb = callback; /* User Function */
config[dev].divisor = us_per_tick * ROM_SysCtlClockGet()/1000000;
config[dev].divisor = ROM_SysCtlClockGet() / freq;
unsigned int sysctl_timer;
unsigned int timer_base;