]> 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:57:59 +0000 (18:57 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 27 Jan 2008 18:57:59 +0000 (18:57 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@143 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/CORTEX_LM3S811_GCC/FreeRTOSConfig.h
Demo/CORTEX_LM3S811_GCC/main.c

index cb9289217c9906a1fee0cbaefaaec10955b7eb96..077241c017e33f33654f611932076d35861c0ebd 100644 (file)
@@ -74,7 +74,7 @@ to exclude the API function. */
 #define INCLUDE_vTaskDelayUntil                        1\r
 #define INCLUDE_vTaskDelay                             1\r
 \r
-\r
+#define configKERNEL_INTERRUPT_PRIORITY 255\r
 \r
 \r
 #endif /* FREERTOS_CONFIG_H */\r
index d4005f0b8f7b79d2f41157f31464149eb0e7f1f2..216f6c0913a666a693e8e51c85e9a26783bc6a47 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