]> git.sur5r.net Git - freertos/commitdiff
Add calls to portYIELD_FROM_ISR().
authorRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 28 Jan 2009 11:08:35 +0000 (11:08 +0000)
committerRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 28 Jan 2009 11:08:35 +0000 (11:08 +0000)
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

index a55708a55af81201fbb7e8703d996796826d1005..8477c8d3068661f6df9f539e7f738b5a716e563e 100644 (file)
@@ -218,10 +218,6 @@ void vSerialClose( xComPortHandle xPort )
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-//#pragma vector=INTUD0T_vector\r
-//extern __interrupt void vUARTTxISRWrapper( void );\r
-//#pragma required=vUARTTxISRWrapper\r
-\r
 void vUARTTxISRHandler( void )\r
 {\r
 char cChar;\r
@@ -235,11 +231,10 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
        {\r
                ulTxInProgress = pdFALSE;\r
        }\r
+       \r
+       portYIELD_FROM_ISR( xHigherPriorityTaskWoken );\r
 }\r
 \r
-//#pragma vector=INTUD0R_vector\r
-//extern __interrupt void vUARTRxISRWrapper( void );\r
-//#pragma required=vUARTRxISRWrapper\r
 \r
 void vUARTRxISRHandler( void )\r
 {\r
@@ -248,6 +243,8 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
 \r
        cChar = UD0RX;\r
        xQueueSendFromISR( xRxedChars, &cChar, &xHigherPriorityTaskWoken );\r
+       \r
+       portYIELD_FROM_ISR( xHigherPriorityTaskWoken ); \r
 }\r
 \r
 \r