Compare commits

..

2 Commits

Author SHA1 Message Date
Pierre Barbier
e549ed9038 fixed typo 2026-06-02 17:02:52 +02:00
Pierre Barbier
1b3da3bf67 global state implementation + sync_states 2026-06-02 17:00:41 +02:00

View 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-later
#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;