add start of state machine

This commit is contained in:
Sem van der Hoeven
2023-10-28 17:47:45 +02:00
parent 37248ea771
commit 892ea7d725
4 changed files with 84 additions and 0 deletions

19
due_obd2/statemachine.c Normal file
View File

@@ -0,0 +1,19 @@
#include "statemachine.h"
state_t none_state =
{
.id = 0,
.on_enter = &__state_none,
.on_run = &__state_none,
.on_exit = &__state_none,
}
statemachine_t statemachine =
{
.current_state =
};
void statemachine_init()
{
}