aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libopenstm32.h1
-rw-r--r--include/libopenstm32/rcc.h30
2 files changed, 31 insertions, 0 deletions
diff --git a/include/libopenstm32.h b/include/libopenstm32.h
index 3196ca8..82ebe9b 100644
--- a/include/libopenstm32.h
+++ b/include/libopenstm32.h
@@ -23,6 +23,7 @@
#include "libopenstm32/common.h"
#include "libopenstm32/memorymap.h"
+#include "libopenstm32/rcc.h"
#include "libopenstm32/gpio.h"
#endif
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