mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-02-25 17:11:20 -05:00

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
|