Skip to content

Commit

Permalink
Empty implementation of wait
Browse files Browse the repository at this point in the history
  • Loading branch information
fredizzimo committed Jun 18, 2017
1 parent 585d646 commit efaf0e8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tmk_core/common/wait.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ extern "C" {
# include <util/delay.h>
# define wait_ms(ms) _delay_ms(ms)
# define wait_us(us) _delay_us(us)
#elif defined(PROTOCOL_CHIBIOS) /* __AVR__ */
#elif defined(PROTOCOL_CHIBIOS)
# include "ch.h"
# define wait_ms(ms) chThdSleepMilliseconds(ms)
# define wait_us(us) chThdSleepMicroseconds(us)
#elif defined(__arm__) /* __AVR__ */
#elif defined(__arm__)
# include "wait_api.h"
#endif /* __AVR__ */
#else // Unit tests
#define wait_ms(ms)
#define wait_us(us)
#endif

#ifdef __cplusplus
}
Expand Down

0 comments on commit efaf0e8

Please sign in to comment.