From a76f78bcef64b012e76cb16d71950a66c94ddb99 Mon Sep 17 00:00:00 2001 From: Joseph Julicher Date: Tue, 26 Sep 2023 10:20:00 -0700 Subject: [PATCH] further reductions in the template port --- portable/template/port.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/portable/template/port.c b/portable/template/port.c index f44d7e2b876..39c7014f23d 100644 --- a/portable/template/port.c +++ b/portable/template/port.c @@ -31,15 +31,15 @@ #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 ) @@ -47,17 +47,10 @@ StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack, 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. */