aboutsummaryrefslogtreecommitdiff
path: root/include/libopenstm32/rcc.h
diff options
context:
space:
mode:
authorUwe Hermann2009-07-18 05:34:38 +0200
committerUwe Hermann2009-07-18 05:34:38 +0200
commit355701525e048e1f77e64bc5dc4546c0e5d86fba (patch)
tree86d4e80efe3fd158faa983d0f550097b8bab46f4 /include/libopenstm32/rcc.h
parent526cb01aaa39617c4fc8db2edb7416cefd37b8f5 (diff)
Add initial minimal rcc.h implementation (not complete).
Diffstat (limited to 'include/libopenstm32/rcc.h')
-rw-r--r--include/libopenstm32/rcc.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/libopenstm32/rcc.h b/include/libopenstm32/rcc.h
new file mode 100644
index 0000000..2f8724a
--- /dev/null
+++ b/include/libopenstm32/rcc.h
@@ -0,0 +1,30 @@
+/*
+ * This file is part of the libopenstm32 project.
+ *
+ * Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef LIBOPENSTM32_RCC_H
+#define LIBOPENSTM32_RCC_H
+
+#include "libopenstm32.h"
+
+#define RCC_APB2ENR MMIO32(RCC_BASE + 0x18)
+
+#define RCC_IOPCEN (1 << 4)
+
+#endif