8000 Make timer task priority configurable and default to 2 · h2zero/n-able-Arduino@e56db5c · GitHub
[go: up one dir, main page]

Skip to content

Commit e56db5c

Browse files
committed
Make timer task priority configurable and default to 2
1 parent 6264e83 commit e56db5c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cores/nRF5/freertos/FreeRTOSConfig.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@
8383
#define CONFIG_RTOS_TIMER_STACK_DEPTH (256)
8484
#endif
8585

86+
#ifndef CONFIG_RTOS_TIMER_TASK_PRIORITY
87+
#define CONFIG_RTOS_TIMER_TASK_PRIORITY (2)
88+
#endif
8689

8790
#define configTICK_SOURCE FREERTOS_USE_RTC
8891

@@ -130,7 +133,7 @@
130133

131134
/* Software timer definitions. */
132135
#define configUSE_TIMERS 1
133-
#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1)
136+
#define configTIMER_TASK_PRIORITY CONFIG_RTOS_TIMER_TASK_PRIORITY
134137
#define configTIMER_QUEUE_LENGTH CONFIG_RTOS_TIMER_QUEUE_LENGTH
135138
#define configTIMER_TASK_STACK_DEPTH CONFIG_RTOS_TIMER_STACK_DEPTH
136139

0 commit comments

Comments
 (0)
0