summaryrefslogtreecommitdiff
path: root/rcc
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2021-09-15 01:08:19 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2021-09-16 20:29:45 +0200
commitc394c461c5494025934b4fda4231ee0c02b21d4d (patch)
tree8f1549b04445606751450b2fc19aecd1bb2bb5fa /rcc
parent0b937d47a4abf697dc4c6b9fe8565f9777132474 (diff)
rcc: include a static file with function prototypes
Authors modifying rcc.cpp should add their protos here as desired. Signed-off-by: Karl Palsson <karlp@tweak.net.au>
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);