summaryrefslogtreecommitdiff
path: root/code/main/teensy_goalie/src/main.c
diff options
context:
space:
mode:
authorAbel Tim <git@abeltim.com>2025-06-18 11:46:16 +0200
committerAbel Tim <git@abeltim.com>2025-06-18 11:46:16 +0200
commit1c1d1f4e0401803ca4d367e4379499b6ed112dfb (patch)
treea2a25e0d8d14906a909b53ebd3de972279ac4290 /code/main/teensy_goalie/src/main.c
parentcca1a7f02153d3c23551011effbbce449d5dc1c3 (diff)
downloadrobotica-1c1d1f4e0401803ca4d367e4379499b6ed112dfb.tar.gz
robotica-1c1d1f4e0401803ca4d367e4379499b6ed112dfb.zip
pre robotica commit
Multi-line description of commit, feel free to be detailed. Signed-off-by: Abel Tim <git@abeltim.com>
Diffstat (limited to 'code/main/teensy_goalie/src/main.c')
-rw-r--r--code/main/teensy_goalie/src/main.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/code/main/teensy_goalie/src/main.c b/code/main/teensy_goalie/src/main.c
index 137e898..4dd3f24 100644
--- a/code/main/teensy_goalie/src/main.c
+++ b/code/main/teensy_goalie/src/main.c
@@ -1,17 +1,3 @@
-#include <stdio.h>
-#include <zephyr/kernel.h>
-#include <zephyr/sys/printk.h>
-#include <zephyr/device.h>
-#include <zephyr/drivers/pwm.h>
-#include <zephyr/devicetree.h>
-#include <zephyr/drivers/gpio.h>
-
-// Settings
-#define PWM_PERIOD_NS 20000000
-#define PWM_PULSE_WIDTH 1400000
-static const int32_t sleep_time_ms = 100;
-static const struct gpio_dt_spec btn = GPIO_DT_SPEC_GET(DT_ALIAS(powerswitch), gpios);
-static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(DT_ALIAS(redled), gpios);
-
-#define LED0_NODE DT_ALIAS(redled)
-#define PWM_LED0 DT_ALIAS(en3a)
+#include <zephyr.h>
+#include <drivers/pwm.h>
+#include <sys/printk.h>