Skip to content

Commit 2dd6946

Browse files
committed
Update FreeRTOS config.
Former-commit-id: c2be2af
1 parent 4d6a183 commit 2dd6946

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cores/nRF5/freertos/FreeRTOSConfig.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
# define CONFIG_RTOS_TIMER_QUEUE_LENGTH (6)
6363
# endif
6464
# ifndef CONFIG_RTOS_TIMER_STACK_DEPTH
65-
# define CONFIG_RTOS_TIMER_STACK_DEPTH (64)
65+
# define CONFIG_RTOS_TIMER_STACK_DEPTH (72)
6666
# endif
6767
# endif
6868
#endif
@@ -72,7 +72,7 @@
7272
#endif
7373

7474
#ifndef CONFIG_RTOS_MIN_TASK_SIZE
75-
#define CONFIG_RTOS_MIN_TASK_SIZE (80)
75+
#define CONFIG_RTOS_MIN_TASK_SIZE (120)
7676
#endif
7777

7878
#ifndef CONFIG_RTOS_TIMER_QUEUE_LENGTH
@@ -87,7 +87,11 @@
8787
#define configTICK_SOURCE FREERTOS_USE_RTC
8888

8989
#define configUSE_PREEMPTION 1
90+
#ifdef NRF51
9091
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
92+
#else
93+
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
94+
#endif
9195
#define configUSE_TICKLESS_IDLE 1
9296
#define configUSE_TICKLESS_IDLE_SIMPLE_DEBUG 1 /* See into vPortSuppressTicksAndSleep source code for explanation */
9397
#define configCPU_CLOCK_HZ ( SystemCoreClock )

0 commit comments

Comments
 (0)