From b696419d31d37cdd44d38ed6d148a13a39f907cd Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Wed, 14 Sep 2022 00:04:14 -0600 Subject: [PATCH] fix compile error with rp2040 --- .../chibios/boards/GENERIC_PROMICRO_RP2040/configs/chconf.h | 2 ++ platforms/chibios/boards/GENERIC_RP_RP2040/configs/chconf.h | 2 ++ platforms/chibios/boards/QMK_PM2040/configs/chconf.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/chconf.h b/platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/chconf.h index eae6dcc529..28eb8fcf9e 100644 --- a/platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/chconf.h +++ b/platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/chconf.h @@ -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 diff --git a/platforms/chibios/boards/GENERIC_RP_RP2040/configs/chconf.h b/platforms/chibios/boards/GENERIC_RP_RP2040/configs/chconf.h index eae6dcc529..28eb8fcf9e 100644 --- a/platforms/chibios/boards/GENERIC_RP_RP2040/configs/chconf.h +++ b/platforms/chibios/boards/GENERIC_RP_RP2040/configs/chconf.h @@ -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 diff --git a/platforms/chibios/boards/QMK_PM2040/configs/chconf.h b/platforms/chibios/boards/QMK_PM2040/configs/chconf.h index eae6dcc529..28eb8fcf9e 100644 --- a/platforms/chibios/boards/QMK_PM2040/configs/chconf.h +++ b/platforms/chibios/boards/QMK_PM2040/configs/chconf.h @@ -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