removed old stepper code leftovers

This commit is contained in:
2025-12-01 11:23:27 +01:00
parent a4c2d82c4c
commit d02d2f24e1
3 changed files with 4 additions and 38 deletions

View File

@@ -19,22 +19,20 @@ bool verify_are_devices_available(void) {
devices_ready = false;
}
if (!pwm_is_ready_dt(&servo0)) {
printk("Servo0 not ready\n");
devices_ready = false;
}
if (!device_is_ready(counter5)) {
printk("Counter 5 not ready\n");
devices_ready = false;
}
if (!device_is_ready(rotenc0)) {
printk("Rotory encoder 0 not ready\n");
devices_ready = false;
}
if (!device_is_ready(stepper0)) {
printk("Stepper 0 not ready\n");
devices_ready = false;
}
return devices_ready;
}
}

View File

@@ -6,12 +6,10 @@
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/pwm.h>
#include <zephyr/drivers/stepper.h>
#else
#include <device.h>
#include <devicetree.h>
#include <drivers/pwm.h>
#endif
static const struct gpio_dt_spec led0 = GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios);
@@ -20,7 +18,6 @@ static const struct gpio_dt_spec led2 = GPIO_DT_SPEC_GET(DT_ALIAS(led2), gpios);
static const struct device *rotenc0 = DEVICE_DT_GET(DT_ALIAS(rotenc0));
static const struct device *stepper0 = DEVICE_DT_GET(DT_ALIAS(stepper0));
static const struct pwm_dt_spec servo0 = PWM_DT_SPEC_GET(DT_ALIAS(servo0));
static const struct device *counter5 = DEVICE_DT_GET(DT_NODELABEL(counter5));
bool verify_are_devices_available(void);
bool verify_are_devices_available(void);