]> git.sur5r.net Git - freertos/blobdiff - Demo/dsPIC_MPLAB/serial/serial.c
Update in preparation for the V4.3.1 release.
[freertos] / Demo / dsPIC_MPLAB / serial / serial.c
index 4c5165efc888212dc9e0c644af60bf1e7814b083..70a178dc46baf65d789badc3a348a53622748997 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-       FreeRTOS.org V4.1.3 - Copyright (C) 2003-2006 Richard Barry.\r
+       FreeRTOS.org V4.3.1 - Copyright (C) 2003-2007 Richard Barry.\r
 \r
        This file is part of the FreeRTOS.org distribution.\r
 \r
@@ -27,6 +27,9 @@
        See http://www.FreeRTOS.org for documentation, latest information, license \r
        and contact details.  Please ensure to read the configuration and relevant \r
        port sections of the online documentation.\r
+\r
+       Also see http://www.SafeRTOS.com for an IEC 61508 compliant version along\r
+       with commercial development and support options.\r
        ***************************************************************************\r
 */\r
 \r
@@ -113,8 +116,8 @@ portCHAR cChar;
 \r
        IFS1bits.U2RXIF = serCLEAR_FLAG;\r
        IFS1bits.U2TXIF = serCLEAR_FLAG;\r
-       IPC7bits.U2RXIP = portKERNEL_INTERRUPT_PRIORITY;\r
-       IPC7bits.U2TXIP = portKERNEL_INTERRUPT_PRIORITY;\r
+       IPC7bits.U2RXIP = configKERNEL_INTERRUPT_PRIORITY;\r
+       IPC7bits.U2TXIP = configKERNEL_INTERRUPT_PRIORITY;\r
        IEC1bits.U2TXIE = serINTERRUPT_ENABLE;\r
        IEC1bits.U2RXIE = serINTERRUPT_ENABLE;\r
 \r
@@ -176,10 +179,7 @@ void vSerialClose( xComPortHandle xPort )
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-volatile short s = 0;\r
-char c[80] = {0};\r
-\r
-void __attribute__((__interrupt__)) _U2RXInterrupt( void )\r
+void __attribute__((__interrupt__, auto_psv)) _U2RXInterrupt( void )\r
 {\r
 portCHAR cChar;\r
 portBASE_TYPE xYieldRequired = pdFALSE;\r
@@ -201,7 +201,7 @@ portBASE_TYPE xYieldRequired = pdFALSE;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-void __attribute__((__interrupt__)) _U2TXInterrupt( void )\r
+void __attribute__((__interrupt__, auto_psv)) _U2TXInterrupt( void )\r
 {\r
 signed portCHAR cChar;\r
 portBASE_TYPE xTaskWoken = pdFALSE;\r