From: joeycastillo Date: Wed, 18 Sep 2024 12:56:47 +0000 (-0400) Subject: minimal blinky sketch X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=f7cf2a6c4dfb17c3801b8b3a6928c9da6714e380;p=sensor-watch.git minimal blinky sketch --- diff --git a/Makefile b/Makefile new file mode 100644 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 index 0000000..231dccb --- /dev/null +++ b/movement.c @@ -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