mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-24 07:21:57 -04:00
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.D W0 \n" \
|
||||||
"POP SR " );
|
"POP SR " );
|
||||||
#endif /* __HAS_EDS__ */
|
#endif /* __HAS_EDS__ */
|
||||||
#endif /* MPLAB_PIC24_PORT */
|
#endif /* defined( __PIC24E__ ) || defined ( __PIC24F__ ) || defined( __PIC24FK__ ) || defined( __PIC24H__ ) */
|
||||||
|
|
||||||
#if defined( __dsPIC30F__ ) || defined( __dsPIC33F__ )
|
#if defined( __dsPIC30F__ ) || defined( __dsPIC33F__ )
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ UBaseType_t uxCriticalNesting = 0xef;
|
||||||
"POP.D W0 \n" \
|
"POP.D W0 \n" \
|
||||||
"POP SR " );
|
"POP SR " );
|
||||||
|
|
||||||
#endif /* MPLAB_DSPIC_PORT */
|
#endif /* defined( __dsPIC30F__ ) || defined( __dsPIC33F__ ) */
|
||||||
|
|
||||||
#ifndef portRESTORE_CONTEXT
|
#ifndef portRESTORE_CONTEXT
|
||||||
#error Unrecognised device selected
|
#error Unrecognised device selected
|
||||||
|
@ -185,7 +185,7 @@ const StackType_t xInitialStack[] =
|
||||||
0xabac, /* TBLPAG */
|
0xabac, /* TBLPAG */
|
||||||
|
|
||||||
/* dsPIC specific registers. */
|
/* dsPIC specific registers. */
|
||||||
#ifdef MPLAB_DSPIC_PORT
|
#if defined( __dsPIC30F__ ) || defined( __dsPIC33F__ )
|
||||||
0x0202, /* ACCAL */
|
0x0202, /* ACCAL */
|
||||||
0x0303, /* ACCAH */
|
0x0303, /* ACCAH */
|
||||||
0x0404, /* ACCAU */
|
0x0404, /* ACCAU */
|
||||||
|
@ -331,4 +331,4 @@ void __attribute__((__interrupt__, auto_psv)) configTICK_INTERRUPT_HANDLER( void
|
||||||
portYIELD();
|
portYIELD();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*-----------------------------------------------------------*/
|
||||||
|
|
Loading…
Reference in a new issue