fix compile error with rp2040
This commit is contained in:
parent
bee2b7708f
commit
b696419d31
@ -11,7 +11,9 @@
|
|||||||
#define CH_CFG_ST_TIMEDELTA 0
|
#define CH_CFG_ST_TIMEDELTA 0
|
||||||
|
|
||||||
/* Workaround a bug in chibios where port_timer_enable is not defined for RP2040 in tick mode */
|
/* Workaround a bug in chibios where port_timer_enable is not defined for RP2040 in tick mode */
|
||||||
|
#if !defined(_FROM_ASM_)
|
||||||
void stBind(void);
|
void stBind(void);
|
||||||
#define port_timer_enable(oip) stBind()
|
#define port_timer_enable(oip) stBind()
|
||||||
|
#endif
|
||||||
|
|
||||||
#include_next <chconf.h>
|
#include_next <chconf.h>
|
||||||
|
@ -11,7 +11,9 @@
|
|||||||
#define CH_CFG_ST_TIMEDELTA 0
|
#define CH_CFG_ST_TIMEDELTA 0
|
||||||
|
|
||||||
/* Workaround a bug in chibios where port_timer_enable is not defined for RP2040 in tick mode */
|
/* Workaround a bug in chibios where port_timer_enable is not defined for RP2040 in tick mode */
|
||||||
|
#if !defined(_FROM_ASM_)
|
||||||
void stBind(void);
|
void stBind(void);
|
||||||
#define port_timer_enable(oip) stBind()
|
#define port_timer_enable(oip) stBind()
|
||||||
|
#endif
|
||||||
|
|
||||||
#include_next <chconf.h>
|
#include_next <chconf.h>
|
||||||
|
@ -11,7 +11,9 @@
|
|||||||
#define CH_CFG_ST_TIMEDELTA 0
|
#define CH_CFG_ST_TIMEDELTA 0
|
||||||
|
|
||||||
/* Workaround a bug in chibios where port_timer_enable is not defined for RP2040 in tick mode */
|
/* Workaround a bug in chibios where port_timer_enable is not defined for RP2040 in tick mode */
|
||||||
|
#if !defined(_FROM_ASM_)
|
||||||
void stBind(void);
|
void stBind(void);
|
||||||
#define port_timer_enable(oip) stBind()
|
#define port_timer_enable(oip) stBind()
|
||||||
|
#endif
|
||||||
|
|
||||||
#include_next <chconf.h>
|
#include_next <chconf.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user