minimal blinky sketch
This commit is contained in:
parent
063fe96ef2
commit
f7cf2a6c4d
17
Makefile
Normal file
17
Makefile
Normal 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
16
movement.c
Normal 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;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user