feat: create firmware skeleton and reproducible build
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#ifndef MAZE32_HEALTH_H
|
||||
#define MAZE32_HEALTH_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
MAZE32_HEALTH_BOOTING = 0,
|
||||
MAZE32_HEALTH_FILESYSTEM_READY,
|
||||
MAZE32_HEALTH_SERVING,
|
||||
MAZE32_HEALTH_ERROR,
|
||||
} maze32_health_state_t;
|
||||
|
||||
typedef struct {
|
||||
const char *version;
|
||||
maze32_health_state_t state;
|
||||
int error_code;
|
||||
} maze32_health_t;
|
||||
|
||||
void maze32_health_init(maze32_health_t *health, const char *version);
|
||||
void maze32_health_set(maze32_health_t *health, maze32_health_state_t state, int error_code);
|
||||
const char *maze32_health_state_name(maze32_health_state_t state);
|
||||
int maze32_health_is_healthy(const maze32_health_t *health);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user