aboutsummaryrefslogtreecommitdiff
path: root/stmhal/mphalport.h
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/mphalport.h')
-rw-r--r--stmhal/mphalport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/mphalport.h b/stmhal/mphalport.h
index 29a9fd6c3..02b408777 100644
--- a/stmhal/mphalport.h
+++ b/stmhal/mphalport.h
@@ -37,6 +37,7 @@ void mp_hal_set_interrupt_char(int c); // -1 to disable
// timing functions
#include "stmhal/systick.h"
#define mp_hal_delay_ms HAL_Delay
+#define mp_hal_delay_us(us) sys_tick_udelay(us)
#define mp_hal_delay_us_fast(us) sys_tick_udelay(us)
#define mp_hal_ticks_ms HAL_GetTick
#define mp_hal_ticks_us() sys_tick_get_microseconds()