From ce71976939b270fc1b6dbd1e844eba0339939490 Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Tue, 31 Oct 2017 12:01:19 +0100 Subject: [PATCH] make: add missing header files and update build system --- include/shell/buzzer.h | 3 +++ include/shell/rtc.h | 1 + source/platform/stm32f0/Makefile | 1 + source/platform/stm32f1/Makefile | 1 + source/shell/Makefile | 1 + 5 files changed, 7 insertions(+) create mode 100644 include/shell/buzzer.h diff --git a/include/shell/buzzer.h b/include/shell/buzzer.h new file mode 100644 index 0000000..f6bedb3 --- /dev/null +++ b/include/shell/buzzer.h @@ -0,0 +1,3 @@ +#pragma once + +int shell_buzzer(struct console *con, size_t argc, const char **argv); diff --git a/include/shell/rtc.h b/include/shell/rtc.h index 8363347..3a7be01 100644 --- a/include/shell/rtc.h +++ b/include/shell/rtc.h @@ -5,3 +5,4 @@ struct console; int shell_date(struct console *con, size_t argc, const char **argv); int shell_time(struct console *con, size_t argc, const char **argv); int shell_set_date(struct console *con, size_t argc, const char **argv); +int shell_set_time(struct console *con, size_t argc, const char **argv); diff --git a/source/platform/stm32f0/Makefile b/source/platform/stm32f0/Makefile index 0d2e774..1214f67 100644 --- a/source/platform/stm32f0/Makefile +++ b/source/platform/stm32f0/Makefile @@ -2,6 +2,7 @@ obj-y += source/platform/spi_flash.o obj-y += source/platform/usart.o obj-y += source/platform/stm32f0/alarm.o +obj-y += source/platform/stm32f0/buzzer.o obj-y += source/platform/stm32f0/gpio.o obj-y += source/platform/stm32f0/rcc.o obj-y += source/platform/stm32f0/rtc.o diff --git a/source/platform/stm32f1/Makefile b/source/platform/stm32f1/Makefile index 820f4a0..e622aef 100644 --- a/source/platform/stm32f1/Makefile +++ b/source/platform/stm32f1/Makefile @@ -2,6 +2,7 @@ obj-y += source/platform/spi_flash.o obj-y += source/platform/usart.o obj-y += source/platform/stm32f1/alarm.o +obj-y += source/platform/stm32f1/buzzer.o obj-y += source/platform/stm32f1/gpio.o obj-y += source/platform/stm32f1/rcc.o obj-y += source/platform/stm32f1/rtc.o diff --git a/source/shell/Makefile b/source/shell/Makefile index 43f54d0..8803929 100644 --- a/source/shell/Makefile +++ b/source/shell/Makefile @@ -1,5 +1,6 @@ obj-y += source/shell/args.o obj-y += source/shell/boot.o +obj-y += source/shell/buzzer.o obj-y += source/shell/cmd.o obj-y += source/shell/echo.o obj-y += source/shell/flash.o