]> git.sur5r.net Git - freertos/commitdiff
Set the interrupt priority of the button and UART interrupts.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 27 Jan 2008 18:49:53 +0000 (18:49 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 27 Jan 2008 18:49:53 +0000 (18:49 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@142 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/CORTEX_LM3S811_IAR/main.c

index 7c435e9936df33768e2eea3e9da3a762ce75daf2..bf254cb10a13c481869134a03907c72c0d365c17 100644 (file)
@@ -240,6 +240,7 @@ static void prvSetupHardware( void )
        SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);\r
     GPIODirModeSet(GPIO_PORTC_BASE, mainPUSH_BUTTON, GPIO_DIR_MODE_IN);\r
        GPIOIntTypeSet( GPIO_PORTC_BASE, mainPUSH_BUTTON,GPIO_FALLING_EDGE );\r
+       IntPrioritySet( INT_GPIOC, configKERNEL_INTERRUPT_PRIORITY );\r
        GPIOPinIntEnable( GPIO_PORTC_BASE, mainPUSH_BUTTON );\r
        IntEnable( INT_GPIOC );\r
 \r
@@ -262,6 +263,7 @@ static void prvSetupHardware( void )
 \r
        /* Enable Tx interrupts. */\r
        HWREG( UART0_BASE + UART_O_IM ) |= UART_INT_TX;\r
+       IntPrioritySet( INT_UART0, configKERNEL_INTERRUPT_PRIORITY );\r
        IntEnable( INT_UART0 );\r
 \r
 \r