mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 13:31:58 -04:00
further reductions in the template port
This commit is contained in:
parent
b283a6a691
commit
a76f78bcef
|
@ -31,15 +31,15 @@
|
||||||
#include "FreeRTOS.h"
|
#include "FreeRTOS.h"
|
||||||
#include "task.h"
|
#include "task.h"
|
||||||
|
|
||||||
/* Constant used for context switch macro when we require the interrupt
|
|
||||||
* enable state to be unchanged when the interrupted task is switched back in. */
|
|
||||||
#define portINTERRUPTS_UNCHANGED 0x00
|
|
||||||
|
|
||||||
BaseType_t xPortStartScheduler( void )
|
BaseType_t xPortStartScheduler( void )
|
||||||
{
|
{
|
||||||
return pdTRUE;
|
return pdTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void vPortEndScheduler( void )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
|
StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
|
||||||
TaskFunction_t pxCode,
|
TaskFunction_t pxCode,
|
||||||
void * pvParameters )
|
void * pvParameters )
|
||||||
|
@ -47,16 +47,9 @@ StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void vPortEndScheduler( void )
|
|
||||||
{
|
|
||||||
/* It is unlikely that the scheduler for the PIC port will get stopped
|
|
||||||
* once running. If required disable the tick interrupt here, then return
|
|
||||||
* to xPortStartScheduler(). */
|
|
||||||
}
|
|
||||||
|
|
||||||
void vPortYield( void )
|
void vPortYield( void )
|
||||||
{
|
{
|
||||||
|
|
||||||
/* Save the current Context */
|
/* Save the current Context */
|
||||||
/* Switch to the highest priority task that is ready to run. */
|
/* Switch to the highest priority task that is ready to run. */
|
||||||
vTaskSwitchContext();
|
vTaskSwitchContext();
|
||||||
|
|
Loading…
Reference in a new issue