Skip to content

Commit

Permalink
260: add board specific chconf
Browse files Browse the repository at this point in the history
  • Loading branch information
dexter93 committed Oct 12, 2022
1 parent 78ee352 commit 2e95cef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions platforms/chibios/boards/SN_SN32F260/configs/chconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@
#define CH_CFG_IDLE_LEAVE_HOOK() { \
SN_PMU->CTRL = 0; \
}
#define PORT_IDLE_THREAD_STACK_SIZE 0
#define PORT_INT_REQUIRED_STACK 0
#define RAW_IN_CAPACITY 1
#define RAW_OUT_CAPACITY 1

/* can't call sleep without the idle thread, must override related functions */
#if CH_CFG_NO_IDLE_THREAD == TRUE
#pragma weak chThdSleep
#pragma weak chThdSuspendTimeoutS
#endif

#include_next <chconf.h>

0 comments on commit 2e95cef

Please sign in to comment.