From: richardbarry Date: Wed, 7 May 2008 17:59:17 +0000 (+0000) Subject: Raise the priority of the serial interrupt. X-Git-Tag: V5.0.2~55 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e6d51eab824a2e7b1f01944bc7f17ac6dd975d25;p=freertos Raise the priority of the serial interrupt. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@342 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/PIC32MX_MPLAB/serial/serial.c b/Demo/PIC32MX_MPLAB/serial/serial.c index 81c3fa749..eccbb7e83 100644 --- a/Demo/PIC32MX_MPLAB/serial/serial.c +++ b/Demo/PIC32MX_MPLAB/serial/serial.c @@ -94,7 +94,7 @@ unsigned portSHORT usBRG; /* Configure the UART and interrupts. */ usBRG = (unsigned portSHORT)(( (float)configPERIPHERAL_CLOCK_HZ / ( (float)16 * (float)ulWantedBaud ) ) - (float)0.5); OpenUART2( UART_EN, UART_RX_ENABLE | UART_TX_ENABLE | UART_INT_TX | UART_INT_RX_CHAR, usBRG ); - ConfigIntUART2( configKERNEL_INTERRUPT_PRIORITY | UART_INT_SUB_PR0 | UART_TX_INT_EN | UART_RX_INT_EN ); + ConfigIntUART2( ( configKERNEL_INTERRUPT_PRIORITY + 1 ) | UART_INT_SUB_PR0 | UART_TX_INT_EN | UART_RX_INT_EN ); xTxHasEnded = pdTRUE;