From e5b32503825c53d278d09a34d7165020e1b5cad4 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Tue, 22 Jan 2013 23:37:54 +0000 Subject: [stm32] Support the "new" BCD style RTC peripheral Add the register definitions and some of the most basic helper functions for the new style BCD RTC module found on the F2, F4, L1, F3 and F0. This tries to keep as close to HACKING_COMMON_DOC as possible, while maintaining sane names. --- lib/stm32/f2/rtc.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lib/stm32/f2/rtc.c (limited to 'lib/stm32/f2/rtc.c') diff --git a/lib/stm32/f2/rtc.c b/lib/stm32/f2/rtc.c new file mode 100644 index 0000000..461d0b1 --- /dev/null +++ b/lib/stm32/f2/rtc.c @@ -0,0 +1,27 @@ +/** @defgroup rtc_file RTC + +@ingroup STM32F2xx + +@brief libopencm3 STM32F2xx RTC + +*/ + +/* + * 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 . + */ + +#include +#include -- cgit v1.2.3