From: joeycastillo Date: Wed, 18 Sep 2024 16:52:30 +0000 (-0400) Subject: rename test app to app.c for clarity X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=aaa3b55c67d502149e1d7908d828e19c569a6fa7;p=sensor-watch.git rename test app to app.c for clarity --- diff --git a/Makefile b/Makefile index 901abaf..68a80fc 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ endif # Add your source files here. SRCS += \ - ./movement.c \ + ./app.c \ # Finally, leave this line at the bottom of the file. include $(GOSSAMER_PATH)/rules.mk diff --git a/app.c b/app.c new file mode 100644 index 0000000..231dccb --- /dev/null +++ b/app.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 diff --git a/movement.c b/movement.c deleted file mode 100644 index 231dccb..0000000 --- a/movement.c +++ /dev/null @@ -1,16 +0,0 @@ -#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