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/sdcard.c | |
parent | 6ab5512132d5b3d19a5bf029cb27829d41e76f8e (diff) | |
download | micropython-89738e8240b0ae6dcc24c48d8e9e5078da90e15a.tar.gz micropython-89738e8240b0ae6dcc24c48d8e9e5078da90e15a.zip |
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/sdcard.c')
-rw-r--r-- | stmhal/sdcard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/sdcard.c b/stmhal/sdcard.c index c93b98b51e..73206f4316 100644 --- a/stmhal/sdcard.c +++ b/stmhal/sdcard.c @@ -28,9 +28,9 @@ #include "py/nlr.h" #include "py/runtime.h" +#include "py/mphal.h" #include "lib/oofatfs/ff.h" #include "extmod/vfs_fat.h" -#include "mphalport.h" #include "sdcard.h" #include "pin.h" |