Skip to content
Snippets Groups Projects
Commit c62679bd authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix/mphalport.h: Add dummy definition of mp_hal_ticks_cpu().

To fix coverage build.
parent 6a2c6098
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,7 @@ void mp_hal_stdio_mode_orig(void); ...@@ -38,6 +38,7 @@ void mp_hal_stdio_mode_orig(void);
// "The useconds argument shall be less than one million." // "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_ms(mp_uint_t ms) { usleep((ms) * 1000); }
static inline void mp_hal_delay_us(mp_uint_t us) { usleep(us); } 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) \ #define RAISE_ERRNO(err_flag, error_val) \
{ if (err_flag == -1) \ { if (err_flag == -1) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment