]> git.sur5r.net Git - freertos/blobdiff - Source/portable/IAR/ATMega323/portmacro.h
Update to V4.3.0 as described in http://www.FreeRTOS.org/History.txt
[freertos] / Source / portable / IAR / ATMega323 / portmacro.h
index 4af5aa3935f02317488792876a1d84e9cddd5917..6c4795de8cf48658ac9e9a9b0190f5cffbc1c2b7 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-       FreeRTOS.org V4.0.4 - Copyright (C) 2003-2006 Richard Barry.\r
+       FreeRTOS.org V4.3.0 - 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
@@ -70,15 +73,13 @@ Changes from V1.2.3
 /*-----------------------------------------------------------*/        \r
 \r
 /* Critical section management. */\r
-#define portENTER_CRITICAL()   asm( "in r15, 3fh" );           \\r
-                                                               asm( "cli" );                           \\r
-                                                               asm( "st -y, r15" )\r
-\r
-#define portEXIT_CRITICAL()            asm( "ld r15, y+" );            \\r
-                                                               asm( "out 3fh, r15" )\r
+extern void vPortEnterCritical( void );\r
+extern void vPortExitCritical( void );\r
+#define portENTER_CRITICAL()   vPortEnterCritical()\r
+#define portEXIT_CRITICAL()            vPortExitCritical()\r
 \r
-#define portDISABLE_INTERRUPTS()       asm( "cli" );\r
-#define portENABLE_INTERRUPTS()                asm( "sti" );\r
+#define portDISABLE_INTERRUPTS()       asm( "cli" )\r
+#define portENABLE_INTERRUPTS()                asm( "sei" )\r
 /*-----------------------------------------------------------*/\r
 \r
 /* Architecture specifics. */\r