PSG14a emulator V1.00
PSG14a emulator for stating GTD350 engine
|
Contains functions that are called in while(1) main cycle and after it. More...
#include "main_cycle.h"
#include "main_outputs.h"
#include "led.h"
#include "led_control.h"
#include "buttons.h"
#include "clock_and_timers.h"
Enumerations | |
enum | MCSM_State_t { MCSM_Idle = 0 , MCSM_Cold , MCSM_Start , MCSM_Emergency_Stop_Cold , MCSM_Emergency_Stop_Start } |
Main Cycle State Machine states. More... | |
Functions | |
void | mainCycleRun (void) |
This function is called in while(1). Waiting for the end of the tick is done after it. | |
void | mainCyclePreRun (void) |
This function is called before main cycle and makes 5s pause to connect debugger if needed. | |
Contains functions that are called in while(1) main cycle and after it.
enum MCSM_State_t |
Main Cycle State Machine states.
void mainCyclePreRun | ( | void | ) |
This function is called before main cycle and makes 5s pause to connect debugger if needed.
References GPIO_LED, Gpio_Reset_Pin(), Gpio_Set_Pin(), IsExpiredTimer(), and ResetTimer().
Referenced by main().
void mainCycleRun | ( | void | ) |
This function is called in while(1). Waiting for the end of the tick is done after it.
References Blink_Led(), Buttons_Get_State(), Control_Outs(), MCSM_Cold, MCSM_Emergency_Stop_Cold, MCSM_Emergency_Stop_Start, MCSM_Idle, MCSM_Start, Set_State(), STATE_COLD, STATE_IDLE, and STATE_START.
Referenced by main().