diff options
Diffstat (limited to 'os/hal/platforms/LPC122x/hal_lld.c')
-rw-r--r-- | os/hal/platforms/LPC122x/hal_lld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/LPC122x/hal_lld.c b/os/hal/platforms/LPC122x/hal_lld.c index 9069434ba..d457c7aea 100644 --- a/os/hal/platforms/LPC122x/hal_lld.c +++ b/os/hal/platforms/LPC122x/hal_lld.c @@ -54,7 +54,7 @@ void hal_lld_init(void) { /* SysTick initialization using the system clock.*/
nvicSetSystemHandlerPriority(HANDLER_SYSTICK, CORTEX_PRIORITY_SYSTICK);
- SysTick->LOAD = LPC122x_SYSCLK / CH_FREQUENCY - 1;
+ SysTick->LOAD = LPC122x_SYSCLK / CH_CFG_FREQUENCY - 1;
SysTick->VAL = 0;
SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk |
SysTick_CTRL_ENABLE_Msk |
|