let's begin

This commit is contained in:
joeycastillo 2024-09-18 13:47:35 -04:00
parent 0a82d16d4e
commit 9f73677883
3 changed files with 18 additions and 14 deletions

View File

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

1
app.c
View File

@ -1,4 +1,5 @@
#include "app.h"
#include "watch.h"
#include "delay.h"
void app_init(void) {

View 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)
@ -58,20 +57,20 @@
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