aboutsummaryrefslogtreecommitdiff
path: root/stmhal/gccollect.c
diff options
context:
space:
mode:
authorDamien George2017-03-02 15:32:32 +1100
committerDamien George2017-03-02 15:32:32 +1100
commit89738e8240b0ae6dcc24c48d8e9e5078da90e15a (patch)
tree94fe1425d6fda8e4bf9ed8d91256287828e763dd /stmhal/gccollect.c
parent6ab5512132d5b3d19a5bf029cb27829d41e76f8e (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/gccollect.c')
-rw-r--r--stmhal/gccollect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/gccollect.c b/stmhal/gccollect.c
index 8a7bbf27f..d7223dedc 100644
--- a/stmhal/gccollect.c
+++ b/stmhal/gccollect.c
@@ -39,7 +39,7 @@ mp_uint_t gc_helper_get_regs_and_sp(mp_uint_t *regs);
void gc_collect(void) {
// get current time, in case we want to time the GC
#if 0
- uint32_t start = sys_tick_get_microseconds();
+ uint32_t start = mp_hal_ticks_us();
#endif
// start the GC
@@ -66,7 +66,7 @@ void gc_collect(void) {
#if 0
// print GC info
- uint32_t ticks = sys_tick_get_microseconds() - start;
+ uint32_t ticks = mp_hal_ticks_us() - start;
gc_info_t info;
gc_info(&info);
printf("GC@%lu %lums\n", start, ticks);