#pragma once #include #if ZEPHYR_VERSION_CODE >= ZEPHYR_VERSION(3,1,0) #include #include #include #include #else #include #include #endif static const struct gpio_dt_spec uros_connection_status_led = GPIO_DT_SPEC_GET(DT_CHOSEN(uros_status_led), gpios); static const struct gpio_dt_spec pid_offset_led = GPIO_DT_SPEC_GET(DT_CHOSEN(pid_offset_led), gpios); static const struct gpio_dt_spec uros_error_led = GPIO_DT_SPEC_GET(DT_CHOSEN(uros_error_led), gpios); static const struct device *rotenc0 = DEVICE_DT_GET(DT_CHOSEN(pid_rotenc)); static const struct device *stepper0 = DEVICE_DT_GET(DT_CHOSEN(pid_stepper)); static const struct device *pid_counter = DEVICE_DT_GET(DT_CHOSEN(pid_counter)); bool verify_are_devices_available(void);