mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-10-01 01:45:38 -04:00
4e3f5469ef
Switch on state, then read commands specifically in the states that allow reading of commands, then switch on specific command.
17 lines
225 B
C
17 lines
225 B
C
/*
|
|
* Copyright (C) 2023 - Tillitis AB
|
|
* SPDX-License-Identifier: GPL-2.0-only
|
|
*/
|
|
|
|
#ifndef STATE_H
|
|
#define STATE_H
|
|
|
|
enum state {
|
|
FW_STATE_INITIAL,
|
|
FW_STATE_LOADING,
|
|
FW_STATE_RUN,
|
|
FW_STATE_FAIL,
|
|
FW_STATE_MAX,
|
|
};
|
|
#endif
|