Skip to content

Commit 2e95cef

Browse files
committed
260: add board specific chconf
1 parent 78ee352 commit 2e95cef

File tree

1 file changed

+10
-0
lines changed
  • platforms/chibios/boards/SN_SN32F260/configs

1 file changed

+10
-0
lines changed

platforms/chibios/boards/SN_SN32F260/configs/chconf.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@
4848
#define CH_CFG_IDLE_LEAVE_HOOK() { \
4949
SN_PMU->CTRL = 0; \
5050
}
51+
#define PORT_IDLE_THREAD_STACK_SIZE 0
52+
#define PORT_INT_REQUIRED_STACK 0
53+
#define RAW_IN_CAPACITY 1
54+
#define RAW_OUT_CAPACITY 1
55+
56+
/* can't call sleep without the idle thread, must override related functions */
57+
#if CH_CFG_NO_IDLE_THREAD == TRUE
58+
#pragma weak chThdSleep
59+
#pragma weak chThdSuspendTimeoutS
60+
#endif
5161

5262
#include_next <chconf.h>
5363

0 commit comments

Comments
 (0)