From 7c09d0d14c99d5be56436a3864038212812bcd2a Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Thu, 17 Nov 2022 21:15:47 +0000 Subject: [PATCH] stm32f3: enable RTC Fixes: https://github.com/libopencm3/libopencm3/issues/1446 Fixes: 18f4d7c1b7 stm32f3: rtc: include correct shared header No testing on real hardware, but the docs imply that this should have always had the "basic" rtc-v2 peripheral. Signed-off-by: Karl Palsson --- include/libopencm3/stm32/f3/rtc.h | 4 ++-- lib/stm32/f3/Makefile | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/libopencm3/stm32/f3/rtc.h b/include/libopencm3/stm32/f3/rtc.h index b7cbbb4d..1899a4ad 100644 --- a/include/libopencm3/stm32/f3/rtc.h +++ b/include/libopencm3/stm32/f3/rtc.h @@ -32,8 +32,8 @@ * along with this library. If not, see . */ -#ifndef LIBOPENCM3_RTC_F3_H -#define LIBOPENCM3_RTC_F3_H +#ifndef LIBOPENCM3_RTC_H +#define LIBOPENCM3_RTC_H #include diff --git a/lib/stm32/f3/Makefile b/lib/stm32/f3/Makefile index f4e471cb..359dc743 100644 --- a/lib/stm32/f3/Makefile +++ b/lib/stm32/f3/Makefile @@ -49,6 +49,7 @@ OBJS += iwdg_common_all.o OBJS += opamp_common_all.o opamp_common_v1.o OBJS += pwr_common_v1.o OBJS += rcc.o rcc_common_all.o +OBJS += rtc_common_l1f024.o OBJS += spi_common_all.o spi_common_v2.o OBJS += timer_common_all.o timer_common_f0234.o OBJS += usart_common_v2.o usart_common_all.o