diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-02 15:32:32 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-02 15:32:32 +1100 |
commit | 89738e8240b0ae6dcc24c48d8e9e5078da90e15a (patch) | |
tree | 94fe1425d6fda8e4bf9ed8d91256287828e763dd /stmhal/stm32_it.c | |
parent | 6ab5512132d5b3d19a5bf029cb27829d41e76f8e (diff) |
stmhal: Rename sys_tick ticks/delay functions to corresp. mp_hal ones.
The renames are:
HAL_Delay -> mp_hal_delay_ms
sys_tick_udelay -> mp_hal_delay_us
sys_tick_get_microseconds -> mp_hal_ticks_us
And mp_hal_ticks_ms is added to provide the full set of timing functions.
Also, a separate HAL_Delay function is added which differs slightly from
mp_hal_delay_ms and is intended for use only by the ST HAL functions.
Diffstat (limited to 'stmhal/stm32_it.c')
-rw-r--r-- | stmhal/stm32_it.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/stm32_it.c b/stmhal/stm32_it.c index d8fcc59ce..913f1c931 100644 --- a/stmhal/stm32_it.c +++ b/stmhal/stm32_it.c @@ -298,7 +298,7 @@ void SysTick_Handler(void) { uwTick += 1; // Read the systick control regster. This has the side effect of clearing - // the COUNTFLAG bit, which makes the logic in sys_tick_get_microseconds + // the COUNTFLAG bit, which makes the logic in mp_hal_ticks_us // work properly. SysTick->CTRL; |