From ae2983591c25abc08adbf83548e53d19291a7214 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Sun, 27 Jan 2008 18:57:59 +0000 Subject: [PATCH] Set the interrupt priority of the button and UART interrupts. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@143 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/CORTEX_LM3S811_GCC/FreeRTOSConfig.h | 2 +- Demo/CORTEX_LM3S811_GCC/main.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Demo/CORTEX_LM3S811_GCC/FreeRTOSConfig.h b/Demo/CORTEX_LM3S811_GCC/FreeRTOSConfig.h index cb9289217..077241c01 100644 --- a/Demo/CORTEX_LM3S811_GCC/FreeRTOSConfig.h +++ b/Demo/CORTEX_LM3S811_GCC/FreeRTOSConfig.h @@ -74,7 +74,7 @@ to exclude the API function. */ #define INCLUDE_vTaskDelayUntil 1 #define INCLUDE_vTaskDelay 1 - +#define configKERNEL_INTERRUPT_PRIORITY 255 #endif /* FREERTOS_CONFIG_H */ diff --git a/Demo/CORTEX_LM3S811_GCC/main.c b/Demo/CORTEX_LM3S811_GCC/main.c index d4005f0b8..216f6c091 100644 --- a/Demo/CORTEX_LM3S811_GCC/main.c +++ b/Demo/CORTEX_LM3S811_GCC/main.c @@ -240,6 +240,7 @@ static void prvSetupHardware( void ) SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC); GPIODirModeSet(GPIO_PORTC_BASE, mainPUSH_BUTTON, GPIO_DIR_MODE_IN); GPIOIntTypeSet( GPIO_PORTC_BASE, mainPUSH_BUTTON,GPIO_FALLING_EDGE ); + IntPrioritySet( INT_GPIOC, configKERNEL_INTERRUPT_PRIORITY ); GPIOPinIntEnable( GPIO_PORTC_BASE, mainPUSH_BUTTON ); IntEnable( INT_GPIOC ); @@ -262,6 +263,7 @@ static void prvSetupHardware( void ) /* Enable Tx interrupts. */ HWREG( UART0_BASE + UART_O_IM ) |= UART_INT_TX; + IntPrioritySet( INT_UART0, configKERNEL_INTERRUPT_PRIORITY ); IntEnable( INT_UART0 ); -- 2.39.5