minimal blinky sketch

This commit is contained in:
joeycastillo 2024-09-18 08:56:47 -04:00
parent 063fe96ef2
commit f7cf2a6c4d
2 changed files with 33 additions and 0 deletions

17
Makefile Normal file
View File

@ -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

16
movement.c Normal file
View File

@ -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;
}