From 0e4f361cdc8eb2062e8cd4c2920954f4d65954c1 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Wed, 7 May 2008 17:54:21 +0000 Subject: [PATCH] Add in the configMAX_SYSCALL_INTERRUPT_PRIORITY constant. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@338 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/PIC32MX_MPLAB/FreeRTOSConfig.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Demo/PIC32MX_MPLAB/FreeRTOSConfig.h b/Demo/PIC32MX_MPLAB/FreeRTOSConfig.h index 107f6b7ce..4d4d73a7d 100644 --- a/Demo/PIC32MX_MPLAB/FreeRTOSConfig.h +++ b/Demo/PIC32MX_MPLAB/FreeRTOSConfig.h @@ -69,14 +69,15 @@ #define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 72000000UL ) #define configPERIPHERAL_CLOCK_HZ ( ( unsigned portLONG ) 36000000UL ) #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 ) -#define configMINIMAL_STACK_SIZE ( 230 ) -#define configISR_STACK_SIZE ( 130 ) -#define configTOTAL_HEAP_SIZE ( ( size_t ) 29000 ) +#define configMINIMAL_STACK_SIZE ( 210 ) +#define configISR_STACK_SIZE ( 400 ) +#define configTOTAL_HEAP_SIZE ( ( size_t ) 25000 ) #define configMAX_TASK_NAME_LEN ( 8 ) #define configUSE_TRACE_FACILITY 0 #define configUSE_16_BIT_TICKS 0 #define configIDLE_SHOULD_YIELD 1 #define configUSE_MUTEXES 1 +#define configCHECK_FOR_STACK_OVERFLOW 2 /* Co-routine definitions. */ #define configUSE_CO_ROUTINES 0 @@ -93,8 +94,14 @@ to exclude the API function. */ #define INCLUDE_vTaskDelayUntil 1 #define INCLUDE_vTaskDelay 1 +/* The priority at which the tick interrupt runs. This should probably be +kept at 1. */ +#define configKERNEL_INTERRUPT_PRIORITY 0x01 -#define configKERNEL_INTERRUPT_PRIORITY 0x01 +/* The maximum interrupt priority from which FreeRTOS.org API functions can +be called. Only API functions that end in ...FromISR() can be used within +interrupts. */ +#define configMAX_SYSCALL_INTERRUPT_PRIORITY 0x03 #endif /* FREERTOS_CONFIG_H */ -- 2.39.5