diff --git a/platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/chconf.h b/platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/chconf.h index 28eb8fcf9e..d53f57edd9 100644 --- a/platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/chconf.h +++ b/platforms/chibios/boards/GENERIC_PROMICRO_RP2040/configs/chconf.h @@ -5,15 +5,9 @@ #define CH_CFG_SMP_MODE TRUE #define CH_CFG_ST_RESOLUTION 32 -#define CH_CFG_ST_FREQUENCY 10000 +#define CH_CFG_ST_FREQUENCY 1000000 #define CH_CFG_INTERVALS_SIZE 32 #define CH_CFG_TIME_TYPES_SIZE 32 -#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 +#define CH_CFG_ST_TIMEDELTA 20 #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 28eb8fcf9e..d53f57edd9 100644 --- a/platforms/chibios/boards/GENERIC_RP_RP2040/configs/chconf.h +++ b/platforms/chibios/boards/GENERIC_RP_RP2040/configs/chconf.h @@ -5,15 +5,9 @@ #define CH_CFG_SMP_MODE TRUE #define CH_CFG_ST_RESOLUTION 32 -#define CH_CFG_ST_FREQUENCY 10000 +#define CH_CFG_ST_FREQUENCY 1000000 #define CH_CFG_INTERVALS_SIZE 32 #define CH_CFG_TIME_TYPES_SIZE 32 -#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 +#define CH_CFG_ST_TIMEDELTA 20 #include_next diff --git a/platforms/chibios/boards/QMK_PM2040/configs/chconf.h b/platforms/chibios/boards/QMK_PM2040/configs/chconf.h index 28eb8fcf9e..d53f57edd9 100644 --- a/platforms/chibios/boards/QMK_PM2040/configs/chconf.h +++ b/platforms/chibios/boards/QMK_PM2040/configs/chconf.h @@ -5,15 +5,9 @@ #define CH_CFG_SMP_MODE TRUE #define CH_CFG_ST_RESOLUTION 32 -#define CH_CFG_ST_FREQUENCY 10000 +#define CH_CFG_ST_FREQUENCY 1000000 #define CH_CFG_INTERVALS_SIZE 32 #define CH_CFG_TIME_TYPES_SIZE 32 -#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 +#define CH_CFG_ST_TIMEDELTA 20 #include_next