32 lines
1.1 KiB
C
32 lines
1.1 KiB
C
#ifndef FREERTOS_CONFIG_H
|
|
#define FREERTOS_CONFIG_H
|
|
|
|
#define configUSE_PREEMPTION 1
|
|
#define configUSE_IDLE_HOOK 0
|
|
#define configUSE_TICK_HOOK 0
|
|
#define configCPU_CLOCK_HZ ((unsigned long)72000000) // 72MHz
|
|
#define configTICK_RATE_HZ ((TickType_t)1000)
|
|
#define configMAX_PRIORITIES (5)
|
|
#define configMINIMAL_STACK_SIZE ((unsigned short)128)
|
|
#define configTOTAL_HEAP_SIZE ((size_t)(10 * 1024)) // 10KB Heap
|
|
#define configMAX_TASK_NAME_LEN (16)
|
|
#define configUSE_16_BIT_TICKS 0
|
|
#define configIDLE_SHOULD_YIELD 1
|
|
|
|
/* Cortex-M3 specific */
|
|
#define configPRIO_BITS 4
|
|
#define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 15
|
|
#define configKERNEL_INTERRUPT_PRIORITY \
|
|
(configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS))
|
|
#define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 5
|
|
#define configMAX_SYSCALL_INTERRUPT_PRIORITY \
|
|
(configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS))
|
|
|
|
/* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS
|
|
* standard names. */
|
|
#define vPortSVCHandler SVC_Handler
|
|
#define xPortPendSVHandler PendSV_Handler
|
|
#define xPortSysTickHandler SysTick_Handler
|
|
|
|
#endif /* FREERTOS_CONFIG_H */
|