From: richardbarry Date: Sun, 27 Jan 2008 18:49:53 +0000 (+0000) Subject: Set the interrupt priority of the button and UART interrupts. X-Git-Tag: V4.7.1~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cafe7f82c4bfeca75939404a3547f4d783dc57a7;p=freertos Set the interrupt priority of the button and UART interrupts. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@142 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/CORTEX_LM3S811_IAR/main.c b/Demo/CORTEX_LM3S811_IAR/main.c index 7c435e993..bf254cb10 100644 --- a/Demo/CORTEX_LM3S811_IAR/main.c +++ b/Demo/CORTEX_LM3S811_IAR/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 );