diff --git a/include/libopencm3/stm32/common/rtc_common_l1f024.h b/include/libopencm3/stm32/common/rtc_common_l1f024.h index 2b886f16..dfef7d95 100644 --- a/include/libopencm3/stm32/common/rtc_common_l1f024.h +++ b/include/libopencm3/stm32/common/rtc_common_l1f024.h @@ -96,6 +96,8 @@ specific memorymap.h header before including this header file.*/ #define RTC_ALRMASSR MMIO32(RTC_BASE + 0x44) #define RTC_ALRMBSSR MMIO32(RTC_BASE + 0x48) +#define RTC_OR MMIO32(RTC_BASE + 0x4c) + #define RTC_BKP_BASE (RTC_BASE + 0x50) /** RTC backup registers (RTC_BKPxR) */ #define RTC_BKPXR(reg) MMIO32(RTC_BKP_BASE + (4 * (reg))) @@ -472,5 +474,3 @@ END_DECLS #warning "rtc_common_l1f024.h should not be included explicitly, only via rtc.h" #endif /** @endcond */ - - diff --git a/include/libopencm3/stm32/h7/rtc.h b/include/libopencm3/stm32/h7/rtc.h new file mode 100644 index 00000000..be2fa2d5 --- /dev/null +++ b/include/libopencm3/stm32/h7/rtc.h @@ -0,0 +1,36 @@ +/** @defgroup rtc_defines RTC Defines + +@brief Defined Constants and Types for the STM32H7xx RTC + +@ingroup STM32H7xx_defines + +@version 1.0.0 + +@date 18 December 2017 + +LGPL License Terms @ref lgpl_license + */ + +/* + * This file is part of the libopencm3 project. + * + * This library is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library. If not, see . + */ + +#ifndef LIBOPENCM3_RTC_H +#define LIBOPENCM3_RTC_H + +#include + +#endif diff --git a/include/libopencm3/stm32/rtc.h b/include/libopencm3/stm32/rtc.h index 53118d3c..a000944f 100644 --- a/include/libopencm3/stm32/rtc.h +++ b/include/libopencm3/stm32/rtc.h @@ -36,7 +36,8 @@ # include #elif defined(STM32L4) # include +#elif defined(STM32H7) +# include #else # error "stm32 family not defined." #endif -