38#ifndef FREERTOS_CONFIG_H
39#define FREERTOS_CONFIG_H
51#define configUSE_PREEMPTION 1
52#define configUSE_IDLE_HOOK 0
53#define configMAX_PRIORITIES ( 6 )
54#define configUSE_TICK_HOOK 0
55#define configCPU_CLOCK_HZ ( ( unsigned long ) 8000000)
56#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
57#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 80 )
58#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 0x4000 ) )
59#define configMAX_TASK_NAME_LEN ( 12 )
60#define configUSE_TRACE_FACILITY 1
61#define configUSE_16_BIT_TICKS 0
62#define configIDLE_SHOULD_YIELD 0
63#define configUSE_CO_ROUTINES 0
64#define configUSE_MUTEXES 1
65#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
66#define configUSE_COUNTING_SEMAPHORES 0
67#define configUSE_ALTERNATIVE_API 0
68#define configCHECK_FOR_STACK_OVERFLOW 1
69#define configUSE_RECURSIVE_MUTEXES 0
70#define configQUEUE_REGISTRY_SIZE 3
71#define configGENERATE_RUN_TIME_STATS 0
72#define configUSE_MALLOC_FAILED_HOOK 0
73#define configENABLE_BACKWARD_COMPATIBILITY 1
74#define configUSE_APPLICATION_TASK_TAG 0
75#define configUSE_TASK_NOTIFICATIONS 1
76#define configUSE_STATS_FORMATTING_FUNCTIONS 0
77#define configAPPLICATION_ALLOCATED_HEAP 1
78#define configSUPPORT_DYNAMIC_ALLOCATION 1
79#define configUSE_TIMERS 1
80#define configTIMER_TASK_PRIORITY 5
81#define configTIMER_QUEUE_LENGTH 2
82#define configTIMER_TASK_STACK_DEPTH 128
85#define configASSERT( x ) if( ( x ) == 0 ) { vAssertCalled( __FILE__, __LINE__ );}
87#if (configGENERATE_RUN_TIME_STATS == 1)
88#include "chip_lpc175x_6x.h"
89extern void vConfigureTimerForRunTimeStats(
void );
90#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() vConfigureTimerForRunTimeStats()
91#define portGET_RUN_TIME_COUNTER_VALUE() LPC_TIMER0->TC
97#define INCLUDE_vTaskPrioritySet 1
98#define INCLUDE_uxTaskPriorityGet 0
99#define INCLUDE_vTaskDelete 1
100#define INCLUDE_vTaskCleanUpResources 1
101#define INCLUDE_vTaskSuspend 1
102#define INCLUDE_vTaskDelayUntil 1
103#define INCLUDE_vTaskDelay 1
104#define INCLUDE_uxTaskGetStackHighWaterMark 1
105#define INCLUDE_xTaskGetCurrentTaskHandle 1
108#ifdef __NVIC_PRIO_BITS
109#define configPRIO_BITS __NVIC_PRIO_BITS
111#define configPRIO_BITS 5
115#define configKERNEL_INTERRUPT_PRIORITY ( 31 << (8 - configPRIO_BITS) )
117#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( 5 << (8 - configPRIO_BITS) )
122#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
124#define vPortSVCHandler SVC_Handler
125#define xPortPendSVHandler PendSV_Handler
126#define xPortSysTickHandler SysTick_Handler
void vAssertCalled(char *file, uint32_t line)