no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
FreeRTOSConfig.h
Go to the documentation of this file.
1/***************************************************************************/
33
34#ifndef IIO_DEMO_FREE_RTOS_CONFIG
35#define IIO_DEMO_FREE_RTOS_CONFIG
36
37#include <stdint.h>
38#define configCPU_CLOCK_HZ ((uint32_t)100000000)
39#define configTICK_RATE_HZ ((portTickType)1000)
40#define configRTC_TICK_RATE_HZ (32768)
41#define configTOTAL_HEAP_SIZE ((size_t)(26 * 1024))
42#define configMINIMAL_STACK_SIZE ((uint16_t)512)
43#define configIIO_APP_STACK_SIZE ((uint16_t)2048)
44// #define configSUPPORT_STATIC_ALLOCATION 1
45#define configMAX_PRIORITIES 5
46#define configUSE_PREEMPTION 1
47#define configUSE_IDLE_HOOK 0
48#define configUSE_TICK_HOOK 0
49#define configUSE_CO_ROUTINES 0
50#define configUSE_16_BIT_TICKS 0
51#define configUSE_MUTEXES 1
52
53#define configSUPPORT_DYNAMIC_ALLOCATION 1
54#define configHEAP_CLEAR_MEMORY_ON_FREE 1
55#define configUSE_TRACE_FACILITY 1
56#define configUSE_STATS_FORMATTING_FUNCTIONS 1
57
58/* Set the following definitions to 1 to include the API function, or zero
59to exclude the API function. */
60#define INCLUDE_vTaskPrioritySet 0
61#define INCLUDE_vTaskDelete 1
62#define INCLUDE_vTaskSuspend 1
63#define INCLUDE_vTaskDelayUntil 1
64#define INCLUDE_uxTaskPriorityGet 0
65#define INCLUDE_vTaskDelay 1
66/* # of priority bits (configured in hardware) is provided by CMSIS */
67#define configPRIO_BITS 3
68/* Priority 7, or 255 as only the top three bits are implemented. This is the lowest priority. */
69#define configKERNEL_INTERRUPT_PRIORITY ((unsigned char)7 << (8 - configPRIO_BITS))
70/* Priority 5, or 160 as only the top three bits are implemented. */
71#define configMAX_SYSCALL_INTERRUPT_PRIORITY ((unsigned char)5 << (8 - configPRIO_BITS))
72/* Alias the default handler names to match CMSIS weak symbols */
73#define vPortSVCHandler SVC_Handler
74#define xPortPendSVHandler PendSV_Handler
75#define xPortSysTickHandler SysTick_Handler
76
77/* FreeRTOS+CLI requires this size to be defined, but we do not use it */
78#define configCOMMAND_INT_MAX_OUTPUT_SIZE 1
79#define INCLUDE_xTaskGetIdleTaskHandle 1
80#define INCLUDE_pxTaskGetStackStart 1
81
82#endif // IIO_DEMO_FREE_RTOS_CONFIG