From e6d51eab824a2e7b1f01944bc7f17ac6dd975d25 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Wed, 7 May 2008 17:59:17 +0000 Subject: [PATCH] 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 --- Demo/PIC32MX_MPLAB/serial/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5