From c394c461c5494025934b4fda4231ee0c02b21d4d Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Tue, 14 Sep 2021 23:08:19 +0000 Subject: rcc: include a static file with function prototypes Authors modifying rcc.cpp should add their protos here as desired. Signed-off-by: Karl Palsson --- rcc/SConscript | 1 + rcc/rcc_methods.h | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 rcc/rcc_methods.h (limited to 'rcc') 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 + +void rcc_init(); +void rcc_init(uint32_t osc_mhz, uint32_t sysclk_mhz); -- cgit v1.2.3