consistant naming for global_state and implemented

This commit is contained in:
2026-06-02 17:54:15 +02:00
parent eba2bb6f99
commit bca9d8816c
2 changed files with 14 additions and 6 deletions

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;