Skip to content

Commit

Permalink
further reductions in the template port
Browse files Browse the repository at this point in the history
  • Loading branch information
n9wxu committed Sep 26, 2023
1 parent b283a6a commit a76f78b
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions portable/template/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,33 +31,26 @@
#include "FreeRTOS.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 )
{
return pdTRUE;
}

void vPortEndScheduler( void )
{
}

StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
TaskFunction_t pxCode,
void * pvParameters )
{
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 )
{

/* Save the current Context */
/* Save the current Context */
/* Switch to the highest priority task that is ready to run. */
vTaskSwitchContext();
/* Start executing the task we have just switched to. */
Expand Down

0 comments on commit a76f78b

Please sign in to comment.