summaryrefslogtreecommitdiff
path: root/rcc
diff options
context:
space:
mode:
Diffstat (limited to 'rcc')
-rw-r--r--rcc/SConscript1
-rw-r--r--rcc/rcc_methods.h6
2 files changed, 7 insertions, 0 deletions
diff --git a/rcc/SConscript b/rcc/SConscript
index c7c384b..f72d4be 100644
--- a/rcc/SConscript
+++ b/rcc/SConscript
@@ -11,6 +11,7 @@ if 'rcc' in periph:
buses = env['PLATFORM_SPEC']['periph']['rcc']['RCC']['bus']
env.Jinja2('rcc_enums.h', 'rcc_enums.h.j2', buses = buses)
+ headers.append('rcc_methods.h')
headers.append('rcc_reg.h')
for name, data in periph['rcc'].items():
instances.append({
diff --git a/rcc/rcc_methods.h b/rcc/rcc_methods.h
new file mode 100644
index 0000000..2888dae
--- /dev/null
+++ b/rcc/rcc_methods.h
@@ -0,0 +1,6 @@
+#pragma once
+
+#include <stdint.h>
+
+void rcc_init();
+void rcc_init(uint32_t osc_mhz, uint32_t sysclk_mhz);