upgrade freertos to v10
This commit is contained in:
Vendored
+2
-34
@@ -1,11 +1,8 @@
|
||||
#ifndef __FREERTOS_CONFIG__H
|
||||
#define __FREERTOS_CONFIG__H
|
||||
|
||||
#ifndef __IASMARM__
|
||||
// IAR assembler "compile" portarm.s need to include this file but cannot understand many other headers.
|
||||
#include "hal/hal.h"
|
||||
#include "common/assertion.h"
|
||||
#endif
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// See http://www.freertos.org/a00110.html.
|
||||
@@ -18,8 +15,8 @@
|
||||
|
||||
#define configUSE_PREEMPTION 1
|
||||
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
|
||||
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 8 )
|
||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 128 )
|
||||
#define configMAX_PRIORITIES (8 )
|
||||
#define configMINIMAL_STACK_SIZE (128 )
|
||||
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 16*1024 ) )
|
||||
#define configMAX_TASK_NAME_LEN 32
|
||||
#define configUSE_16_BIT_TICKS 0
|
||||
@@ -104,33 +101,4 @@ to all Cortex-M ports, and do not rely on any particular library functions. */
|
||||
See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
|
||||
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// portmacro.h include path
|
||||
//--------------------------------------------------------------------+
|
||||
#ifndef __IASMARM__ // avoid messing up with IAR
|
||||
|
||||
#if defined __CC_ARM
|
||||
#define TOOL_DIR RVDS
|
||||
#elif defined __GNUC__
|
||||
#define TOOL_DIR GCC
|
||||
#elif defined __ICCARM__
|
||||
#define TOOL_DIR IAR
|
||||
#else
|
||||
#error "not yet supported toolchain"
|
||||
#endif
|
||||
|
||||
#if __CORTEX_M == 4
|
||||
#define ARCH_DIR ARM_CM4F
|
||||
#elif __CORTEX_M == 3
|
||||
#define ARCH_DIR ARM_CM3
|
||||
#elif __CORTEX_M == 0
|
||||
#define ARCH_DIR ARM_CM0
|
||||
#else
|
||||
#error "not yet supported MCU"
|
||||
#endif
|
||||
|
||||
#include XSTRING_(freertos/Source/portable/TOOL_DIR/ARCH_DIR/portmacro.h)
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* __FREERTOS_CONFIG__H */
|
||||
|
||||
Reference in New Issue
Block a user