mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Basic demo up and running.
This commit is contained in:
parent
5ff84b9869
commit
181889d6b1
3 changed files with 48 additions and 9 deletions
|
@ -125,17 +125,12 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE * pxTopOfStack, pdTASK_COD
|
|||
|
||||
portBASE_TYPE xPortStartScheduler( void )
|
||||
{
|
||||
extern void vPortStartFirstTask( void );
|
||||
|
||||
ulCriticalNesting = 0UL;
|
||||
|
||||
vApplicationSetupInterrupts();
|
||||
|
||||
asm volatile(
|
||||
"move.l pxCurrentTCB, %sp \n\t"\
|
||||
"move.l (%sp), %sp \n\t"\
|
||||
"movem.l (%sp), %d0-%fp \n\t"\
|
||||
"lea.l %sp@(60), %sp \n\t"\
|
||||
"rte "
|
||||
);
|
||||
vPortStartFirstTask();
|
||||
|
||||
return pdFALSE;
|
||||
}
|
||||
|
@ -173,6 +168,13 @@ void vPortClearInterruptMaskFromISR( unsigned portBASE_TYPE uxSavedInterruptMask
|
|||
{
|
||||
}
|
||||
|
||||
void vPortClearYield( void )
|
||||
{
|
||||
/* -32 as we are using the high word of the 64bit mask. */
|
||||
MCF_INTC0_INTFRCH &= ~( 1UL << ( configYIELD_INTERRUPT_VECTOR - 32UL ) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue