]> git.earman.xyz Git - sensor-watch.git/commitdiff
minimal blinky sketch
authorjoeycastillo <joeycastillo@utexas.edu>
Wed, 18 Sep 2024 12:56:47 +0000 (08:56 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Wed, 18 Sep 2024 12:56:47 +0000 (08:56 -0400)
Makefile [new file with mode: 0644]
movement.c [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..ad74e07
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+# Keep this first line.
+GOSSAMER_PATH=gossamer
+
+# If your firmware targets a specific board, specify it here,
+# or omit it and provide it on the command line (make BOARD=foo).
+BOARD=sensorwatch_green
+
+# Leave this line here.
+include $(GOSSAMER_PATH)/make.mk
+
+# Add your source files here.
+SRCS += \
+  ./movement.c \
+
+# Finally, leave this line at the bottom of the file.
+include $(GOSSAMER_PATH)/rules.mk
+
diff --git a/movement.c b/movement.c
new file mode 100644 (file)
index 0000000..231dccb
--- /dev/null
@@ -0,0 +1,16 @@
+#include "app.h"
+#include "delay.h"
+
+void app_init(void) {
+}
+
+void app_setup(void) {
+    HAL_GPIO_GREEN_out();
+}
+
+bool app_loop(void) {
+    HAL_GPIO_GREEN_toggle();
+    delay_ms(500);
+
+    return false;
+}
\ No newline at end of file