Initial sync implementation

Implemented system sync with crank and cam state and simple error
handling
This commit is contained in:
2026-06-03 10:56:28 +02:00
parent 21f0b5a3ea
commit 42e64b673c
6 changed files with 115 additions and 35 deletions

View File

@@ -0,0 +1,13 @@
// Copyright (C) 2026 Hector van der Aa <hector@h3cx.dev>
// 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
#ifdef DEBUG
#include "SEGGER_RTT.h"
#define DEBUG_LOG(fmt, ...) SEGGER_RTT_printf(0, fmt "\n", ##__VA_ARGS__)
#else
#define DEBUG_LOG(fmt, ...) \
do { \
} while (0)
#endif