aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/f2/rtc.h
diff options
context:
space:
mode:
authorKarl Palsson2013-01-22 23:37:54 +0000
committerKarl Palsson2013-01-22 23:55:59 +0000
commite5b32503825c53d278d09a34d7165020e1b5cad4 (patch)
tree860410abc4d99e2d16dee8e69a5d5b42b881f20d /include/libopencm3/stm32/f2/rtc.h
parentb6ee57a5b9fbac7fb1cfe62b6ed8a341bee5543e (diff)
[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.
Diffstat (limited to 'include/libopencm3/stm32/f2/rtc.h')
-rw-r--r--include/libopencm3/stm32/f2/rtc.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/f2/rtc.h b/include/libopencm3/stm32/f2/rtc.h
new file mode 100644
index 0000000..ebc0936
--- /dev/null
+++ b/include/libopencm3/stm32/f2/rtc.h
@@ -0,0 +1,39 @@
+/** @defgroup rtc_defines RTC Defines
+
+@brief <b>Defined Constants and Types for the STM32F2xx RTC</b>
+
+@ingroup STM32F2xx_defines
+
+@version 1.0.0
+
+@author @htmlonly &copy; @endhtmlonly 2012 Ken Sarkies <ksarkies@internode.on.net>
+
+@date 5 December 2012
+
+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 <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef LIBOPENCM3_RTC_H
+#define LIBOPENCM3_RTC_H
+
+#include <libopencm3/stm32/memorymap.h>
+#include <libopencm3/stm32/common/rtc_common_bcd.h>
+
+#endif \ No newline at end of file