-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFreeRTOSConfig.h
52 lines (39 loc) · 1.5 KB
/
FreeRTOSConfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef FREERTOSCONFIG_H
#define FREERTOSCONFIG_H
#ifndef __ASSEMBLER__
#include "../include/assert.h"
#define configASSERT assert
#define configCHECK_FOR_STACK_OVERFLOW 2
#endif /* __ASSEMBLER__ */
#define configUSE_PREEMPTION 1
#define configTICK_RATE_HZ ((TickType_t)100)
#define configMAX_PRIORITIES 4
#define configMINIMAL_STACK_SIZE 4096
#define configMAX_TASK_NAME_LEN 32
#define configUSE_16_BIT_TICKS 0
#define configUSE_TASK_NOTIFICATIONS 1
#define configTASK_NOTIFICATION_ARRAY_ENTRIES 4
#define configUSE_COUNTING_SEMAPHORES 1
/* CPUs from 68010 and above will store a format word on the stack. Set to 1
* to include this, or 0 if using a 68000 which does not use a format word,
* when initialising a task stack. */
#define configM68K_INCLUDE_FORMAT_WORD 1
/* Memory allocation related definitions. */
#define configSUPPORT_DYNAMIC_ALLOCATION 1
#define configTOTAL_HEAP_SIZE 262144
#define configISR_STACK_SIZE configMINIMAL_STACK_SIZE
/* Hook function related definitions. */
#define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 0
/* Software timer related definitions. */
#define configUSE_TIMERS 1
#define configTIMER_TASK_PRIORITY 1
#define configTIMER_QUEUE_LENGTH 10
#define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE
/* Interrupt nesting behaviour configuration. */
#define configKERNEL_INTERRUPT_PRIORITY 0x4
#define configMAX_API_CALL_INTERRUPT_PRIORITY 0x5
/* Optional functions */
#define INCLUDE_vTaskDelay 1
#define INCLUDE_xTaskGetCurrentTaskHandle 1
#endif /* FREERTOSCONFIG_H */