FreeRTOS-Kernel/portable/template/port.c
Joseph Julicher 5cdb1bc4e1
removed the copyright and license header for select files (#815)
* removed the copyright and license header for files expected to be copied by users

* fixed a bug in the kernel checker.  temporarily restored the copyright in the sample config to allow this PR to pass the checks.

* Uncrustify: triggered by comment.

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
2023-10-03 10:43:45 -07:00

47 lines
1.1 KiB
C

/*
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
* license and copyright intentionally withheld to promote copying into user code.
*/
#include "FreeRTOS.h"
#include "task.h"
BaseType_t xPortStartScheduler( void )
{
return pdTRUE;
}
void vPortEndScheduler( void )
{
}
StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
TaskFunction_t pxCode,
void * pvParameters )
{
return NULL;
}
void vPortYield( void )
{
/* 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. */
}
static void prvTickISR( void )
{
/* Interrupts must have been enabled for the ISR to fire, so we have to
* save the context with interrupts enabled. */
/* Maintain the tick count. */
if( xTaskIncrementTick() != pdFALSE )
{
/* Switch to the highest priority task that is ready to run. */
vTaskSwitchContext();
}
/* start executing the new task */
}