global state implementation + sync_states
This commit is contained in:
16
STM32/CM7/Core/Inc/general_state.h
Normal file
16
STM32/CM7/Core/Inc/general_state.h
Normal file
@@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2026 Pierre Barbier <pierrebarbier741@gmail.com>
|
||||
// Copyright (C) 2026 Association Exergie <association.exergie@gmail.com>
|
||||
// SPDX-License-Identifier: GPL-3.0-or-late
|
||||
|
||||
#include <ring_buffer.h>
|
||||
typedef enum {
|
||||
SYNC_OK,
|
||||
SYNC_PENDING,
|
||||
SYNC_NOT_OK
|
||||
} sync_state;
|
||||
|
||||
typedef struct {
|
||||
sync_state sync;
|
||||
ring_buffer_t crank_RB;
|
||||
ring_buffer_t cam_RB;
|
||||
} global_state_t;
|
||||
Reference in New Issue
Block a user