]> git.sur5r.net Git - freertos/commitdiff
Added function stubs.
authorRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 7 Aug 2008 19:10:25 +0000 (19:10 +0000)
committerRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 7 Aug 2008 19:10:25 +0000 (19:10 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@432 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/GCC/ColdFire_V2/port.c
Source/portable/GCC/ColdFire_V2/portmacro.h

index 17bc0ae207cb619394080c9a2441991248d15683..37ffb3a9f7c3ed205fa68b72695c1bd4eebb6de8 100644 (file)
@@ -52,6 +52,8 @@
 #include "FreeRTOS.h"\r
 #include "task.h"\r
 \r
+static unsigned portLONG ulCriticalNesting = 0x9999UL;\r
+\r
 \r
 portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE * pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters )\r
 {\r
@@ -61,10 +63,43 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE * pxTopOfStack, pdTASK_COD
 \r
 portBASE_TYPE xPortStartScheduler( void )\r
 {\r
+       ulCriticalNesting = 0UL;\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
 void vPortEndScheduler( void )\r
 {\r
 }\r
-/*-----------------------------------------------------------*/
\ No newline at end of file
+/*-----------------------------------------------------------*/\r
+\r
+void vPortEnterCritical( void )\r
+{\r
+       portDISABLE_INTERRUPTS();\r
+       ulCriticalNesting++;\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+void vPortExitCritical( void )\r
+{\r
+       ulCriticalNesting--;\r
+       if( ulCriticalNesting == 0 )\r
+       {\r
+               portENABLE_INTERRUPTS();\r
+       }\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+unsigned portBASE_TYPE uxPortSetInterruptMaskFromISR( void )\r
+{\r
+       return 0;\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
+void vPortClearInterruptMaskFromISR( unsigned portBASE_TYPE uxSavedInterruptMask )\r
+{\r
+}\r
+\r
+\r
+\r
+\r
+\r
index f503d8a8eba2d8359fe287721e02f366b229665b..46e6e4785044814b660891082e8d8384c247cffa 100644 (file)
@@ -100,7 +100,7 @@ extern void vTaskExitCritical( void );
 #define portENTER_CRITICAL()           vPortEnterCritical()\r
 #define portEXIT_CRITICAL()                    vPortExitCritical()\r
 \r
-extern unsigned portBASE_TYPE uxPortSetInterruptMaskFromISR();\r
+extern unsigned portBASE_TYPE uxPortSetInterruptMaskFromISR( void );\r
 extern void vPortClearInterruptMaskFromISR( unsigned portBASE_TYPE );\r
 #define portSET_INTERRUPT_MASK_FROM_ISR() uxPortSetInterruptMaskFromISR()\r
 #define portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedStatusRegister ) vPortClearInterruptMaskFromISR( uxSavedStatusRegister )\r