aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Aherne2013-02-27 13:21:21 -0800
committerMichael Aherne2013-02-27 13:21:21 -0800
commit93f2b1ad5bbfaa223ff4c03478690bf2378dfdbc (patch)
treed4a9ae085bd91e4f919f67e9f708bd66991f66ec
parentdd756332457b900a88999f7ae7158513233061f6 (diff)
Fixing some errors introduced with #107.
Namely: - I never added rtc to the makefile, so it wasn't getting compiled - I missed 2 includes that are needed once it's actually compiling
-rw-r--r--lib/stm32/f4/Makefile1
-rw-r--r--lib/stm32/f4/rtc.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/stm32/f4/Makefile b/lib/stm32/f4/Makefile
index 233619c..a6a87d6 100644
--- a/lib/stm32/f4/Makefile
+++ b/lib/stm32/f4/Makefile
@@ -41,6 +41,7 @@ OBJS = rcc.o gpio.o flash.o exti2.o pwr.o timer.o \
dac_common_all.o usart_common_all.o iwdg_common_all.o i2c_common_all.o \
crc_common_all.o \
rtc_common_bcd.o \
+ rtc.o \
can.o
VPATH += ../../usb:../:../../cm3:../common
diff --git a/lib/stm32/f4/rtc.c b/lib/stm32/f4/rtc.c
index 5f6627f..7e1b5ff 100644
--- a/lib/stm32/f4/rtc.c
+++ b/lib/stm32/f4/rtc.c
@@ -23,6 +23,8 @@
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <libopencm3/stm32/exti.h>
+#include <libopencm3/stm32/f4/nvic.h>
#include <libopencm3/stm32/rtc.h>
#include <libopencm3/stm32/common/rtc_common_bcd.h>