FreeRTOS Emulator with SDL2 Based Graphics and Input Library  1.0
A POSIX wrapper to run FreeRTOS on an x86 machine with some basic input and output libraries aimed at making teaching FreeRTOS simpler.
state_machine.c File Reference
#include "FreeRTOS.h"
#include "semphr.h"
#include "queue.h"
#include "buttons.h"
#include "main.h"
#include "demo_tasks.h"
#include "state_machine.h"
#include "states.h"

Functions

int vCheckStateInput (void)
 Checks if the button C was pressed and if so increments the system's state. More...
 
void vStateMachineTask (void *pvParameters)
 Function to be run as the state machine's task, orchestrates a periodic call to states run. More...
 
int xStateMachineInit (void)
 Initialized the states for the state machine. More...
 

Function Documentation

◆ vCheckStateInput()

int vCheckStateInput ( void  )

Checks if the button C was pressed and if so increments the system's state.

Returns
0 on success

◆ vStateMachineTask()

void vStateMachineTask ( void *  pvParameters)

Function to be run as the state machine's task, orchestrates a periodic call to states run.

Parameters
pvParameters

◆ xStateMachineInit()

int xStateMachineInit ( void  )

Initialized the states for the state machine.

Returns
0 on success