2025-06-04 13:51:00 +02:00

20 lines
402 B
C

#include <zephyr/kernel.h>
#define MAX_SAMPLES 10
// Vorwärtsdeklarationen
void synchronite(struct k_work *work);
K_WORK_DEFINE(sync_work, synchronite);
// Hardware
static struct gpio_callback button_cb_data;
// Sync-Variablen
uint32_t offsets[MAX_SAMPLES];
uint8_t offset_count = 0;
uint32_t sync_offset = 0;
uint32_t sync_offset_s = 0;
bool synchronized = false;
uint32_t samples[MAX_SAMPLES];