let's begin
This commit is contained in:
parent
0a82d16d4e
commit
9f73677883
4
Makefile
4
Makefile
@ -23,6 +23,10 @@ $(BUILD)/$(BIN).html: $(OBJS)
|
|||||||
--shell-file=$(TOP)/watch-library/simulator/shell.html
|
--shell-file=$(TOP)/watch-library/simulator/shell.html
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Add your include directories here.
|
||||||
|
INCLUDES += \
|
||||||
|
-I./watch-library/shared/watch \
|
||||||
|
|
||||||
# Add your source files here.
|
# Add your source files here.
|
||||||
SRCS += \
|
SRCS += \
|
||||||
./app.c \
|
./app.c \
|
||||||
|
|||||||
1
app.c
1
app.c
@ -1,4 +1,5 @@
|
|||||||
#include "app.h"
|
#include "app.h"
|
||||||
|
#include "watch.h"
|
||||||
#include "delay.h"
|
#include "delay.h"
|
||||||
|
|
||||||
void app_init(void) {
|
void app_init(void) {
|
||||||
|
|||||||
@ -27,7 +27,6 @@
|
|||||||
#define WATCH_H_
|
#define WATCH_H_
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "driver_init.h"
|
|
||||||
#include "pins.h"
|
#include "pins.h"
|
||||||
|
|
||||||
#define SWCLK GPIO(GPIO_PORTA, 30)
|
#define SWCLK GPIO(GPIO_PORTA, 30)
|
||||||
@ -58,20 +57,20 @@
|
|||||||
deepest sleep mode available on the SAM L22.
|
deepest sleep mode available on the SAM L22.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "watch_rtc.h"
|
// #include "watch_rtc.h"
|
||||||
#include "watch_slcd.h"
|
// #include "watch_slcd.h"
|
||||||
#include "watch_extint.h"
|
// #include "watch_extint.h"
|
||||||
#include "watch_led.h"
|
// #include "watch_led.h"
|
||||||
#include "watch_buzzer.h"
|
// #include "watch_buzzer.h"
|
||||||
#include "watch_adc.h"
|
// #include "watch_adc.h"
|
||||||
#include "watch_gpio.h"
|
// #include "watch_gpio.h"
|
||||||
#include "watch_i2c.h"
|
// #include "watch_i2c.h"
|
||||||
#include "watch_spi.h"
|
// #include "watch_spi.h"
|
||||||
#include "watch_uart.h"
|
// #include "watch_uart.h"
|
||||||
#include "watch_storage.h"
|
// #include "watch_storage.h"
|
||||||
#include "watch_deepsleep.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.
|
/** @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
|
* @details Both the buzzer and the LED use the TCC peripheral to drive their behavior. This function returns true if that
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user