From: RichardBarry Date: Wed, 28 Jan 2009 11:08:35 +0000 (+0000) Subject: Add calls to portYIELD_FROM_ISR(). X-Git-Tag: V5.1.2~68 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=097be1f966bf78c9e4e26442deb4d6654b4a7868;p=freertos Add calls to portYIELD_FROM_ISR(). git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@628 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- 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 ); }