diff options
author | richardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2008-07-16 09:55:52 +0000 |
---|---|---|
committer | richardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2008-07-16 09:55:52 +0000 |
commit | efb73db468e38a1e095641bd42ae47f79cad9791 (patch) | |
tree | 70a0e302360b6c4be120a340a1b07cd951d1a8f2 /Demo/PIC24_MPLAB/serial/serial.c | |
parent | 5fd35a35046e3d1e1523086672b0789ab727cc62 (diff) | |
download | freertos-efb73db468e38a1e095641bd42ae47f79cad9791.tar.gz freertos-efb73db468e38a1e095641bd42ae47f79cad9791.tar.bz2 freertos-efb73db468e38a1e095641bd42ae47f79cad9791.tar.xz |
Update project to use the new asm file for the port yield function, and remove the "user frame pointer" optimisation option.
git-svn-id: https://freertos.svn.sourceforge.net/svnroot/freertos/trunk@410 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'Demo/PIC24_MPLAB/serial/serial.c')
-rw-r--r-- | Demo/PIC24_MPLAB/serial/serial.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/PIC24_MPLAB/serial/serial.c b/Demo/PIC24_MPLAB/serial/serial.c index cb837eb5..a544b1a9 100644 --- a/Demo/PIC24_MPLAB/serial/serial.c +++ b/Demo/PIC24_MPLAB/serial/serial.c @@ -219,7 +219,7 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE; void __attribute__((__interrupt__, auto_psv)) _U2TXInterrupt( void )
{
signed portCHAR cChar;
-portBASE_TYPE xTaskWoken = pdFALSE;
+portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
/* If the transmit buffer is full we cannot get the next character.
Another interrupt will occur the next time there is space so this does
@@ -227,7 +227,7 @@ portBASE_TYPE xTaskWoken = pdFALSE; IFS1bits.U2TXIF = serCLEAR_FLAG;
while( !( U2STAbits.UTXBF ) )
{
- if( xQueueReceiveFromISR( xCharsForTx, &cChar, &xTaskWoken ) == pdTRUE )
+ if( xQueueReceiveFromISR( xCharsForTx, &cChar, &xHigherPriorityTaskWoken ) == pdTRUE )
{
/* Send the next character queued for Tx. */
U2TXREG = cChar;
@@ -240,7 +240,7 @@ portBASE_TYPE xTaskWoken = pdFALSE; }
}
- if( xTaskWoken != pdFALSE )
+ if( xHigherPriorityTaskWoken != pdFALSE )
{
taskYIELD();
}
|