diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-10-19 00:29:40 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-10-19 00:31:37 +0300 |
commit | 949c5c91804655fe257f2444cd7ed5a5e5d9bfa7 (patch) | |
tree | d05069e36d2cae3b85c1209bd2af5a46b499f283 /unix/unix_mphal.h | |
parent | 779941095064efa0be8eca339f866311e19d9c0d (diff) |
unix/unix_mphal: Implement HAL_Delay() and HAL_GetTick().
Diffstat (limited to 'unix/unix_mphal.h')
-rw-r--r-- | unix/unix_mphal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/unix_mphal.h b/unix/unix_mphal.h index 209ce6d07..09d063575 100644 --- a/unix/unix_mphal.h +++ b/unix/unix_mphal.h @@ -37,3 +37,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 HAL_Delay(ms) usleep((ms) * 1000) +uint32_t HAL_GetTick(void); |