fix rp2040 chconf to prevent freezes in wait_ms
This commit is contained in:
parent
0b82e52ef8
commit
8f8ec7e550
3 changed files with 18 additions and 6 deletions
|
@ -5,9 +5,13 @@
|
|||
|
||||
#define CH_CFG_SMP_MODE TRUE
|
||||
#define CH_CFG_ST_RESOLUTION 32
|
||||
#define CH_CFG_ST_FREQUENCY 1000000
|
||||
#define CH_CFG_ST_FREQUENCY 10000
|
||||
#define CH_CFG_INTERVALS_SIZE 32
|
||||
#define CH_CFG_TIME_TYPES_SIZE 32
|
||||
#define CH_CFG_ST_TIMEDELTA 20
|
||||
#define CH_CFG_ST_TIMEDELTA 0
|
||||
|
||||
/* Workaround a bug in chibios where port_timer_enable is not defined for RP2040 in tick mode */
|
||||
void stBind(void);
|
||||
#define port_timer_enable(oip) stBind()
|
||||
|
||||
#include_next <chconf.h>
|
||||
|
|
|
@ -5,9 +5,13 @@
|
|||
|
||||
#define CH_CFG_SMP_MODE TRUE
|
||||
#define CH_CFG_ST_RESOLUTION 32
|
||||
#define CH_CFG_ST_FREQUENCY 1000000
|
||||
#define CH_CFG_ST_FREQUENCY 10000
|
||||
#define CH_CFG_INTERVALS_SIZE 32
|
||||
#define CH_CFG_TIME_TYPES_SIZE 32
|
||||
#define CH_CFG_ST_TIMEDELTA 20
|
||||
#define CH_CFG_ST_TIMEDELTA 0
|
||||
|
||||
/* Workaround a bug in chibios where port_timer_enable is not defined for RP2040 in tick mode */
|
||||
void stBind(void);
|
||||
#define port_timer_enable(oip) stBind()
|
||||
|
||||
#include_next <chconf.h>
|
||||
|
|
|
@ -5,9 +5,13 @@
|
|||
|
||||
#define CH_CFG_SMP_MODE TRUE
|
||||
#define CH_CFG_ST_RESOLUTION 32
|
||||
#define CH_CFG_ST_FREQUENCY 1000000
|
||||
#define CH_CFG_ST_FREQUENCY 10000
|
||||
#define CH_CFG_INTERVALS_SIZE 32
|
||||
#define CH_CFG_TIME_TYPES_SIZE 32
|
||||
#define CH_CFG_ST_TIMEDELTA 20
|
||||
#define CH_CFG_ST_TIMEDELTA 0
|
||||
|
||||
/* Workaround a bug in chibios where port_timer_enable is not defined for RP2040 in tick mode */
|
||||
void stBind(void);
|
||||
#define port_timer_enable(oip) stBind()
|
||||
|
||||
#include_next <chconf.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue