aboutsummaryrefslogtreecommitdiff
path: root/stmhal
diff options
context:
space:
mode:
authorPaul Sokolovsky2015-10-27 23:31:42 +0300
committerPaul Sokolovsky2015-10-27 23:31:42 +0300
commit404dae80a9d5cb6315071fe6206b2a6026be0a09 (patch)
tree1673c104f54427386044a0e739cc1adf8b6f0569 /stmhal
parent9011815d862683711a6d79bb76a553d84b6e4556 (diff)
unix, stmhal: Introduce mp_hal_delay_ms(), mp_hal_ticks_ms().
These MPHAL functions are intended to replace previously used HAL_Delay(), HAL_GetTick() to provide better naming and MPHAL separation (they are fully equivalent otherwise). Also, refactor extmod/modlwip to use them.
Diffstat (limited to 'stmhal')
-rw-r--r--stmhal/mphal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/stmhal/mphal.h b/stmhal/mphal.h
index 012777b87..83b28d8d7 100644
--- a/stmhal/mphal.h
+++ b/stmhal/mphal.h
@@ -23,3 +23,6 @@ int mp_hal_stdin_rx_chr(void);
void mp_hal_stdout_tx_str(const char *str);
void mp_hal_stdout_tx_strn(const char *str, mp_uint_t len);
void mp_hal_stdout_tx_strn_cooked(const char *str, mp_uint_t len);
+
+#define mp_hal_delay_ms HAL_Delay
+#define mp_hal_ticks_ms HAL_GetTick