Pico-Framework
A web-first embedded framework for C++
Loading...
Searching...
No Matches
FreeRTOSConfig_examples.h
Go to the documentation of this file.
1
/*
2
* FreeRTOS V202111.00
3
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
*
5
* Permission is hereby granted, free of charge, to any person obtaining a copy of
6
* this software and associated documentation files (the "Software"), to deal in
7
* the Software without restriction, including without limitation the rights to
8
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
* the Software, and to permit persons to whom the Software is furnished to do so,
10
* subject to the following conditions:
11
*
12
* The above copyright notice and this permission notice shall be included in all
13
* copies or substantial portions of the Software.
14
*
15
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
*
22
* http://www.FreeRTOS.org
23
* http://aws.amazon.com/freertos
24
*
25
* 1 tab == 4 spaces!
26
*/
27
28
#ifndef FREERTOS_CONFIG_EXAMPLES_COMMON_H
29
#define FREERTOS_CONFIG_EXAMPLES_COMMON_H
30
31
#ifndef portINLINE
32
# define portINLINE __inline
33
#endif
34
35
/*-----------------------------------------------------------
36
* Application specific definitions.
37
*
38
* These definitions should be adjusted for your particular hardware and
39
* application requirements.
40
*
41
* THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
42
* FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
43
*
44
* See http://www.freertos.org/a00110.html
45
*----------------------------------------------------------*/
46
47
/* Scheduler Related */
48
#define configUSE_PREEMPTION 1
49
#define configUSE_TICKLESS_IDLE 0
50
#define configUSE_IDLE_HOOK 0
51
#define configUSE_TICK_HOOK 0
52
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
53
#define configMAX_PRIORITIES 32
54
#define configMINIMAL_STACK_SIZE ( configSTACK_DEPTH_TYPE ) 512
55
#define configUSE_16_BIT_TICKS 0
56
57
#define configIDLE_SHOULD_YIELD 1
58
59
/* Synchronization Related */
60
#define configUSE_MUTEXES 1
61
#define configUSE_RECURSIVE_MUTEXES 1
62
#define configUSE_APPLICATION_TASK_TAG 0
63
#define configUSE_COUNTING_SEMAPHORES 1
64
#define configQUEUE_REGISTRY_SIZE 8
65
#define configUSE_QUEUE_SETS 1
66
#define configUSE_TIME_SLICING 1
67
#define configUSE_NEWLIB_REENTRANT 0
68
// todo need this for lwip FreeRTOS sys_arch to compile
69
#define configENABLE_BACKWARD_COMPATIBILITY 1
70
#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 5
71
72
/* System */
73
#define configSTACK_DEPTH_TYPE uint32_t
74
#define configMESSAGE_BUFFER_LENGTH_TYPE size_t
75
76
/* Memory allocation related definitions. */
77
#define configSUPPORT_STATIC_ALLOCATION 1
78
#define configSUPPORT_DYNAMIC_ALLOCATION 1
79
#define configTOTAL_HEAP_SIZE (128*1024)
80
#define configAPPLICATION_ALLOCATED_HEAP 0
81
82
/* Hook function related definitions. */
83
#define configCHECK_FOR_STACK_OVERFLOW 0
84
#define configUSE_MALLOC_FAILED_HOOK 0
85
#define configUSE_DAEMON_TASK_STARTUP_HOOK 0
86
87
/* Run time and task stats gathering related definitions. */
88
#define configGENERATE_RUN_TIME_STATS 0
89
#define configUSE_TRACE_FACILITY 1
90
#define configUSE_STATS_FORMATTING_FUNCTIONS 0
91
92
/* Co-routine related definitions. */
93
#define configUSE_CO_ROUTINES 0
94
#define configMAX_CO_ROUTINE_PRIORITIES 1
95
96
/* Software timer related definitions. */
97
#define configUSE_TIMERS 1
98
#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 )
99
#define configTIMER_QUEUE_LENGTH 10
100
#define configTIMER_TASK_STACK_DEPTH 1024
101
102
/* Interrupt nesting behaviour configuration. */
103
/*
104
#define configKERNEL_INTERRUPT_PRIORITY [dependent of processor]
105
#define configMAX_SYSCALL_INTERRUPT_PRIORITY [dependent on processor and application]
106
#define configMAX_API_CALL_INTERRUPT_PRIORITY [dependent on processor and application]
107
*/
108
109
#if FREE_RTOS_KERNEL_SMP
// set by the RP2xxx SMP port of FreeRTOS
110
/* SMP port only */
111
#ifndef configNUMBER_OF_CORES
112
#define configNUMBER_OF_CORES 2
113
#endif
114
#define configNUM_CORES configNUMBER_OF_CORES
115
#define configTICK_CORE 0
116
#define configRUN_MULTIPLE_PRIORITIES 1
117
#if configNUMBER_OF_CORES > 1
118
#define configUSE_CORE_AFFINITY 1
119
#endif
120
#define configUSE_PASSIVE_IDLE_HOOK 0
121
#endif
122
123
/* RP2040 specific */
124
#define configSUPPORT_PICO_SYNC_INTEROP 1
125
#define configSUPPORT_PICO_TIME_INTEROP 1
126
127
#include <assert.h>
128
/* Define to trap errors during development. */
129
#define configASSERT(x) assert(x)
130
131
/* Set the following definitions to 1 to include the API function, or zero
132
to exclude the API function. */
133
#define INCLUDE_vTaskPrioritySet 1
134
#define INCLUDE_uxTaskPriorityGet 1
135
#define INCLUDE_vTaskDelete 1
136
#define INCLUDE_vTaskSuspend 1
137
#define INCLUDE_vTaskDelayUntil 1
138
#define INCLUDE_vTaskDelay 1
139
#define INCLUDE_xTaskGetSchedulerState 1
140
#define INCLUDE_xTaskGetCurrentTaskHandle 1
141
#define INCLUDE_uxTaskGetStackHighWaterMark 1
142
#define INCLUDE_xTaskGetIdleTaskHandle 1
143
#define INCLUDE_eTaskGetState 1
144
#define INCLUDE_xTimerPendFunctionCall 1
145
#define INCLUDE_xTaskAbortDelay 1
146
#define INCLUDE_xTaskGetHandle 1
147
#define INCLUDE_xTaskResumeFromISR 1
148
#define INCLUDE_xQueueGetMutexHolder 1
149
150
#if PICO_RP2350
151
#define configENABLE_MPU 0
152
#define configENABLE_TRUSTZONE 0
153
#define configRUN_FREERTOS_SECURE_ONLY 1
154
#define configENABLE_FPU 1
155
#define configMAX_SYSCALL_INTERRUPT_PRIORITY 16
156
#endif
157
158
/* A header file that defines trace macro can be included here. */
159
160
#endif
/* FREERTOS_CONFIG_H */
port
FreeRTOSConfig_examples.h
Generated by
1.9.8