]> git.sur5r.net Git - freertos/commitdiff
Add usage of portREMOVE_STATIC_QUALIFIER.
authorRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 24 May 2008 18:56:04 +0000 (18:56 +0000)
committerRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 24 May 2008 18:56:04 +0000 (18:56 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@388 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/MPLAB/PIC18F/portmacro.h
Source/portable/MPLAB/PIC24_dsPIC/portmacro.h
Source/portable/MPLAB/PIC32MX/portmacro.h

index 95ace9425ae0938fd0edab51fc195b2a713141b6..c12e3a438f86734ae1191198e81aa04c4976fee6 100644 (file)
@@ -116,6 +116,11 @@ extern void vPortYield( void );
 #define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )\r
 /*-----------------------------------------------------------*/\r
 \r
+/* Required by the kernel aware debugger. */\r
+#ifdef __DEBUG\r
+       #define portREMOVE_STATIC_QUALIFIER\r
+#endif\r
+\r
 \r
 #define portNOP()                              _asm    \\r
                                                                        NOP \\r
index 51d6775259810d7af1f47553063007d62ed3044b..2f47226937dfb81cafddabf6fc8029379413ddac 100644 (file)
@@ -113,6 +113,10 @@ extern void vPortYield( void );
 #define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )\r
 /*-----------------------------------------------------------*/\r
 \r
+/* Required by the kernel aware debugger. */\r
+#ifdef __DEBUG\r
+       #define portREMOVE_STATIC_QUALIFIER\r
+#endif\r
 \r
 #define portNOP()                              asm volatile ( "NOP" )\r
 \r
index a04cad68dcb66939e64e4768254e771a047cdddf..7ffe11516e1d4f0200e0b20570844fbaaf1e17ab 100644 (file)
@@ -152,7 +152,15 @@ unsigned portLONG ulStatus;                                                \
 #define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )\r
 /*-----------------------------------------------------------*/\r
 \r
-#define portEND_SWITCHING_ISR( vSwitchRequired ) if( vSwitchRequired ) SetCoreSW0()\r
+#define portEND_SWITCHING_ISR( xSwitchRequired )       if( xSwitchRequired )   \\r
+                                                                                                       {                                               \\r
+                                                                                                               portYIELD();            \\r
+                                                                                                       }\r
+\r
+/* Required by the kernel aware debugger. */\r
+#ifdef __DEBUG\r
+       #define portREMOVE_STATIC_QUALIFIER\r
+#endif\r
 \r
 #ifdef __cplusplus\r
 }\r