From 097be1f966bf78c9e4e26442deb4d6654b4a7868 Mon Sep 17 00:00:00 2001 From: RichardBarry Date: Wed, 28 Jan 2009 11:08:35 +0000 Subject: [PATCH] Add calls to portYIELD_FROM_ISR(). git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@628 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/NEC_V850ES_Fx3_IAR/serial/serial.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Demo/NEC_V850ES_Fx3_IAR/serial/serial.c b/Demo/NEC_V850ES_Fx3_IAR/serial/serial.c index a55708a55..8477c8d30 100644 --- a/Demo/NEC_V850ES_Fx3_IAR/serial/serial.c +++ b/Demo/NEC_V850ES_Fx3_IAR/serial/serial.c @@ -218,10 +218,6 @@ void vSerialClose( xComPortHandle xPort ) } /*-----------------------------------------------------------*/ -//#pragma vector=INTUD0T_vector -//extern __interrupt void vUARTTxISRWrapper( void ); -//#pragma required=vUARTTxISRWrapper - void vUARTTxISRHandler( void ) { char cChar; @@ -235,11 +231,10 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE; { ulTxInProgress = pdFALSE; } + + portYIELD_FROM_ISR( xHigherPriorityTaskWoken ); } -//#pragma vector=INTUD0R_vector -//extern __interrupt void vUARTRxISRWrapper( void ); -//#pragma required=vUARTRxISRWrapper void vUARTRxISRHandler( void ) { @@ -248,6 +243,8 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE; cChar = UD0RX; xQueueSendFromISR( xRxedChars, &cChar, &xHigherPriorityTaskWoken ); + + portYIELD_FROM_ISR( xHigherPriorityTaskWoken ); } -- 2.39.5