bugfix: Initialise stack correctly on dsPIC port (#405)
* Use compiler predefined constants. Use of MPLAB_DSPIC_PORT is deprecated.
This commit is contained in:
parent
d649a77128
commit
a432a688ca
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
Reference in New Issue
Block a user