]> git.earman.xyz Git - sensor-watch.git/commitdiff
let's begin
authorjoeycastillo <joeycastillo@utexas.edu>
Wed, 18 Sep 2024 17:47:35 +0000 (13:47 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Wed, 18 Sep 2024 17:47:35 +0000 (13:47 -0400)
Makefile
app.c
watch-library/shared/watch/watch.h

index 68a80fc151fb1fdb5237c6e673b799d3d865a23b..2ae61724597bee403081e4cd157d8b7f6d99a7ad 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,10 @@ $(BUILD)/$(BIN).html: $(OBJS)
                --shell-file=$(TOP)/watch-library/simulator/shell.html
 endif
 
+# Add your include directories here.
+INCLUDES += \
+  -I./watch-library/shared/watch \
+
 # Add your source files here.
 SRCS += \
   ./app.c \
diff --git a/app.c b/app.c
index 231dccbe8716265832eff92f70eef0c6b241a152..a8655b1a52d7a7ed4677ee4220ee71d3489d8df9 100644 (file)
--- a/app.c
+++ b/app.c
@@ -1,4 +1,5 @@
 #include "app.h"
+#include "watch.h"
 #include "delay.h"
 
 void app_init(void) {
index c1838b44fc3ac7691dd28d0c8ca764022c2e834d..516f08e604e4641aa6a86874a54d38ecaf1708d7 100644 (file)
@@ -27,7 +27,6 @@
 #define WATCH_H_
 #include <stdint.h>
 #include <stdbool.h>
-#include "driver_init.h"
 #include "pins.h"
 
 #define SWCLK GPIO(GPIO_PORTA, 30)
                                deepest sleep mode available on the SAM L22.
  */
 
-#include "watch_rtc.h"
-#include "watch_slcd.h"
-#include "watch_extint.h"
-#include "watch_led.h"
-#include "watch_buzzer.h"
-#include "watch_adc.h"
-#include "watch_gpio.h"
-#include "watch_i2c.h"
-#include "watch_spi.h"
-#include "watch_uart.h"
-#include "watch_storage.h"
-#include "watch_deepsleep.h"
+// #include "watch_rtc.h"
+// #include "watch_slcd.h"
+// #include "watch_extint.h"
+// #include "watch_led.h"
+// #include "watch_buzzer.h"
+// #include "watch_adc.h"
+// #include "watch_gpio.h"
+// #include "watch_i2c.h"
+// #include "watch_spi.h"
+// #include "watch_uart.h"
+// #include "watch_storage.h"
+// #include "watch_deepsleep.h"
 
-#include "watch_private.h"
+// #include "watch_private.h"
 
 /** @brief Returns true if either the buzzer or the LED driver is enabled.
   * @details Both the buzzer and the LED use the TCC peripheral to drive their behavior. This function returns true if that