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