2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file engine_controller.h
|
|
|
|
* @brief Controllers package entry point header
|
|
|
|
*
|
|
|
|
* @date Feb 7, 2013
|
2020-01-07 21:02:40 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2019-09-19 21:34:42 -07:00
|
|
|
#pragma once
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2023-11-29 04:13:10 -08:00
|
|
|
#define FAST_CALLBACK_PERIOD_MS 5
|
|
|
|
#define SLOW_CALLBACK_PERIOD_MS 50
|
|
|
|
|
2024-06-09 08:42:06 -07:00
|
|
|
bool validateConfigOnStartUpOrBurn();
|
2024-07-20 14:02:21 -07:00
|
|
|
char * getPinNameByAdcChannel(const char *msg, adc_channel_e hwChannel, char *buffer, size_t bufferSize);
|
2021-11-16 01:15:29 -08:00
|
|
|
void initPeriodicEvents();
|
2023-09-25 09:49:44 -07:00
|
|
|
// see also applyNewHardwareSettings
|
|
|
|
void initRealHardwareEngineController();
|
2023-03-04 22:13:43 -08:00
|
|
|
void commonEarlyInit();
|
2021-11-16 01:15:29 -08:00
|
|
|
void commonInitEngineController();
|
|
|
|
void initStartStopButton();
|
2023-11-10 14:15:16 -08:00
|
|
|
void initWarningRunningPins();
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2021-11-16 01:15:29 -08:00
|
|
|
void initDataStructures();
|
2019-12-23 21:03:53 -08:00
|
|
|
|
2021-11-16 01:15:29 -08:00
|
|
|
void slowStartStopButtonCallback();
|