bugfix: Initialise stack correctly on dsPIC port
* Use compiler predefined constants.
Use of MPLAB_DSPIC_PORT is deprecated.
@@ -109,7 +109,7 @@ UBaseType_t uxCriticalNesting = 0xef;
"POP.D W0 \n" \
"POP SR " );
#endif /* __HAS_EDS__ */
-#endif /* MPLAB_PIC24_PORT */
+#endif /* defined( __PIC24E__ ) || defined ( __PIC24F__ ) || defined( __PIC24FK__ ) || defined( __PIC24H__ ) */
#if defined( __dsPIC30F__ ) || defined( __dsPIC33F__ )
@@ -143,7 +143,7 @@ UBaseType_t uxCriticalNesting = 0xef;
"POP.D W0 \n" \
"POP SR " );
-#endif /* MPLAB_DSPIC_PORT */
+#endif /* defined( __dsPIC30F__ ) || defined( __dsPIC33F__ ) */
#ifndef portRESTORE_CONTEXT
#error Unrecognised device selected
@@ -185,7 +185,7 @@ const StackType_t xInitialStack[] =
0xabac, /* TBLPAG */
/* dsPIC specific registers. */
- #ifdef MPLAB_DSPIC_PORT
+ #if defined( __dsPIC30F__ ) || defined( __dsPIC33F__ )
0x0202, /* ACCAL */
0x0303, /* ACCAH */
0x0404, /* ACCAU */
@@ -331,4 +331,4 @@ void __attribute__((__interrupt__, auto_psv)) configTICK_INTERRUPT_HANDLER( void
portYIELD();
}
}
-
+/*-----------------------------------------------------------*/
