mirror of
https://github.com/Ralim/IronOS.git
synced 2025-07-23 12:23:06 +02:00
89 lines
3.9 KiB
C
89 lines
3.9 KiB
C
#ifndef FREERTOS_CONFIG_H
|
|
#define FREERTOS_CONFIG_H
|
|
#include <stdint.h>
|
|
|
|
#define portCHAR char
|
|
#define configSUPPORT_STATIC_ALLOCATION 1
|
|
#define configSUPPORT_DYNAMIC_ALLOCATION 1
|
|
#define CLINT_CTRL_ADDR (0x02000000UL)
|
|
#define configCLINT_BASE_ADDRESS CLINT_CTRL_ADDR
|
|
#define configUSE_PREEMPTION 1
|
|
#define configUSE_IDLE_HOOK 0
|
|
#define configUSE_TICK_HOOK 0
|
|
#define configCPU_CLOCK_HZ (1000000UL)
|
|
#define configTICK_RATE_HZ ((TickType_t)1000)
|
|
#define configMAX_PRIORITIES (7)
|
|
#define configMINIMAL_STACK_SIZE ((unsigned short)160) /* Only needs to be this high as some demo tasks also use this constant. In production only the idle task would use this. */
|
|
#define configTOTAL_HEAP_SIZE ((size_t)1024 * 8)
|
|
#define configMAX_TASK_NAME_LEN (24)
|
|
#define configUSE_TRACE_FACILITY 0
|
|
#define configIDLE_SHOULD_YIELD 0
|
|
#define configUSE_MUTEXES 1
|
|
#define configQUEUE_REGISTRY_SIZE 8
|
|
#define configCHECK_FOR_STACK_OVERFLOW 2
|
|
#define configUSE_RECURSIVE_MUTEXES 1
|
|
#define configUSE_MALLOC_FAILED_HOOK 1
|
|
#define configUSE_APPLICATION_TASK_TAG 0
|
|
#define configUSE_COUNTING_SEMAPHORES 1
|
|
#define configGENERATE_RUN_TIME_STATS 0
|
|
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
|
|
#define configUSE_STATS_FORMATTING_FUNCTIONS 0
|
|
#define configUSE_TICKLESS_IDLE 0
|
|
#define configTASK_NOTIFICATION_ARRAY_ENTRIES 2
|
|
#define configUSE_TASK_NOTIFICATIONS 1
|
|
#define configTICK_TYPE_WIDTH_IN_BITS TICK_TYPE_WIDTH_32_BITS
|
|
|
|
/* Co-routine definitions. */
|
|
#define configUSE_CO_ROUTINES 0
|
|
|
|
/* Software timer definitions. */
|
|
#define configUSE_TIMERS 1
|
|
#define configTIMER_TASK_PRIORITY (configMAX_PRIORITIES - 1)
|
|
#define configTIMER_QUEUE_LENGTH 8
|
|
#define configTIMER_TASK_STACK_DEPTH (160)
|
|
|
|
/* Task priorities. Allow these to be overridden. */
|
|
#ifndef uartPRIMARY_PRIORITY
|
|
#define uartPRIMARY_PRIORITY (configMAX_PRIORITIES - 3)
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
/* Normal assert() semantics without relying on the provision of an assert.h
|
|
header file. */
|
|
void vAssertCalled(void);
|
|
|
|
#define configASSERT(x) \
|
|
if ((x) == 0) \
|
|
vAssertCalled()
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#if (configUSE_TICKLESS_IDLE != 0)
|
|
void vApplicationSleep(uint32_t xExpectedIdleTime);
|
|
#define portSUPPRESS_TICKS_AND_SLEEP(xExpectedIdleTime) vApplicationSleep(xExpectedIdleTime)
|
|
#endif
|
|
|
|
#define INCLUDE_vTaskPrioritySet 0
|
|
#define INCLUDE_uxTaskPriorityGet 0
|
|
#define INCLUDE_vTaskDelete 1
|
|
#define INCLUDE_vTaskSuspend 1
|
|
#define INCLUDE_xResumeFromISR 1
|
|
#define INCLUDE_vTaskDelayUntil 1
|
|
#define INCLUDE_vTaskDelay 1
|
|
#define INCLUDE_xTaskGetSchedulerState 1
|
|
#define INCLUDE_xTaskGetCurrentTaskHandle 1
|
|
#define INCLUDE_uxTaskGetStackHighWaterMark 1
|
|
#define INCLUDE_xTaskGetIdleTaskHandle 1
|
|
#define INCLUDE_eTaskGetState 1
|
|
#define INCLUDE_xEventGroupSetBitFromISR 1
|
|
#define INCLUDE_xTimerPendFunctionCall 0
|
|
#define INCLUDE_xTaskAbortDelay 0
|
|
#define INCLUDE_xTaskGetHandle 1
|
|
#define INCLUDE_xTaskResumeFromISR 1
|
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#endif /* FREERTOS_CONFIG_H */
|