]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/MPLAB/PIC24_dsPIC/portmacro.h
Update version number to 9.0.0rc2.
[freertos] / FreeRTOS / Source / portable / MPLAB / PIC24_dsPIC / portmacro.h
index 5ef3be56ec6cf750f6854d07f09a3cb7755917c5..c6c71db46ff9a65d231d575a869e5df8f66945a2 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V8.2.1 - Copyright (C) 2015 Real Time Engineers Ltd.\r
+    FreeRTOS V9.0.0rc2 - Copyright (C) 2016 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -8,7 +8,7 @@
 \r
     FreeRTOS is free software; you can redistribute it and/or modify it under\r
     the terms of the GNU General Public License (version 2) as published by the\r
-    Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.\r
+    Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.\r
 \r
     ***************************************************************************\r
     >>!   NOTE: The modification to the GPL is included to allow you to     !<<\r
@@ -113,10 +113,8 @@ typedef unsigned short UBaseType_t;
 /*-----------------------------------------------------------*/\r
 \r
 /* Critical section management. */\r
-#define portINTERRUPT_BITS                     ( ( uint16_t ) configKERNEL_INTERRUPT_PRIORITY << ( uint16_t ) 5 )\r
-\r
-#define portDISABLE_INTERRUPTS()       SR |= portINTERRUPT_BITS; __asm volatile ( "NOP" )\r
-#define portENABLE_INTERRUPTS()                SR &= ~portINTERRUPT_BITS\r
+#define portDISABLE_INTERRUPTS()       SET_CPU_IPL( configKERNEL_INTERRUPT_PRIORITY ); __asm volatile ( "NOP" )\r
+#define portENABLE_INTERRUPTS()                SET_CPU_IPL( 0 )\r
 \r
 /* Note that exiting a critical sectino will set the IPL bits to 0, nomatter\r
 what their value was prior to entering the critical section. */\r