]> git.sur5r.net Git - freertos/commitdiff
Raise the priority of the serial interrupt.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 7 May 2008 17:59:17 +0000 (17:59 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 7 May 2008 17:59:17 +0000 (17:59 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@342 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/PIC32MX_MPLAB/serial/serial.c

index 81c3fa74901ace87da79069b1346b5ed0b20b3d2..eccbb7e83e507d11fe26491714e31c1b27f82f23 100644 (file)
@@ -94,7 +94,7 @@ unsigned portSHORT usBRG;
        /* Configure the UART and interrupts. */\r
        usBRG = (unsigned portSHORT)(( (float)configPERIPHERAL_CLOCK_HZ / ( (float)16 * (float)ulWantedBaud ) ) - (float)0.5);\r
        OpenUART2( UART_EN, UART_RX_ENABLE | UART_TX_ENABLE | UART_INT_TX | UART_INT_RX_CHAR, usBRG );\r
-       ConfigIntUART2( configKERNEL_INTERRUPT_PRIORITY | UART_INT_SUB_PR0 | UART_TX_INT_EN | UART_RX_INT_EN );\r
+       ConfigIntUART2( ( configKERNEL_INTERRUPT_PRIORITY + 1 ) | UART_INT_SUB_PR0 | UART_TX_INT_EN | UART_RX_INT_EN );\r
 \r
        xTxHasEnded = pdTRUE;\r
 \r