diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-10-29 17:23:05 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-10-29 17:23:05 +0300 |
commit | c62679bdaadea2277291aa3f8bc1e36757b1c61d (patch) | |
tree | fba8d858c714d18c7eb0849444e7e719e063af7c | |
parent | 6a2c6098f487f1faab2010d00950ce2258fdac53 (diff) | |
download | micropython-c62679bdaadea2277291aa3f8bc1e36757b1c61d.tar.gz micropython-c62679bdaadea2277291aa3f8bc1e36757b1c61d.zip |
unix/mphalport.h: Add dummy definition of mp_hal_ticks_cpu().
To fix coverage build.
-rw-r--r-- | unix/mphalport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/mphalport.h b/unix/mphalport.h index 9e232c5609..00e79ec17c 100644 --- a/unix/mphalport.h +++ b/unix/mphalport.h @@ -38,6 +38,7 @@ void mp_hal_stdio_mode_orig(void); // "The useconds argument shall be less than one million." static inline void mp_hal_delay_ms(mp_uint_t ms) { usleep((ms) * 1000); } static inline void mp_hal_delay_us(mp_uint_t us) { usleep(us); } +#define mp_hal_ticks_cpu() 0 #define RAISE_ERRNO(err_flag, error_val) \ { if (err_flag == -1) \ |