Files
microros_turntable_controller/src/devices.hpp
2025-08-23 12:57:32 +02:00

17 lines
382 B
C++

#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);