17 lines
382 B
C++
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); |