fix compile error with rp2040

This commit is contained in:
Ilya Zhuravlev 2022-09-14 00:04:14 -06:00
parent bee2b7708f
commit b696419d31
3 changed files with 6 additions and 0 deletions

View File

@ -11,7 +11,9 @@
#define CH_CFG_ST_TIMEDELTA 0
/* Workaround a bug in chibios where port_timer_enable is not defined for RP2040 in tick mode */
#if !defined(_FROM_ASM_)
void stBind(void);
#define port_timer_enable(oip) stBind()
#endif
#include_next <chconf.h>

View File

@ -11,7 +11,9 @@
#define CH_CFG_ST_TIMEDELTA 0
/* Workaround a bug in chibios where port_timer_enable is not defined for RP2040 in tick mode */
#if !defined(_FROM_ASM_)
void stBind(void);
#define port_timer_enable(oip) stBind()
#endif
#include_next <chconf.h>

View File

@ -11,7 +11,9 @@
#define CH_CFG_ST_TIMEDELTA 0
/* Workaround a bug in chibios where port_timer_enable is not defined for RP2040 in tick mode */
#if !defined(_FROM_ASM_)
void stBind(void);
#define port_timer_enable(oip) stBind()
#endif
#include_next <chconf.h>