Implement led control in another module

This commit is contained in:
Rodrigo Arias Mallo
2025-11-02 19:24:02 +01:00
parent 402e1f4e43
commit d59dec50a8
7 changed files with 207 additions and 24 deletions

13
barista/test/compat.c Normal file
View File

@@ -0,0 +1,13 @@
/* Copyright (c) 2025 Rodrigo Arias Mallo <rodarima@gmail.com>
* SPDX-License-Identifier: GPL-3.0-or-later */
#include "compat.h"
#include <time.h>
unsigned long millis(void)
{
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return ts.tv_sec * 1000UL + ts.tv_nsec / 1000000UL;
}