refactored project structure

This commit is contained in:
2025-08-23 12:57:32 +02:00
parent 6c53932267
commit d1f03f832b
14 changed files with 240 additions and 63 deletions

17
src/devices.hpp Normal file
View File

@@ -0,0 +1,17 @@
#pragma once
#include <version.h>
#if ZEPHYR_VERSION_CODE >= ZEPHYR_VERSION(3,1,0)
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/gpio.h>
#else
#include <device.h>
#include <devicetree.h>
#include <drivers/gpio.h>
#endif
static const struct gpio_dt_spec led0 = GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios);
bool verify_are_devices_available(void);