aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/fsmc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmaple/fsmc.c b/libmaple/fsmc.c
index 4e25ef6..a8df2e1 100644
--- a/libmaple/fsmc.c
+++ b/libmaple/fsmc.c
@@ -88,6 +88,9 @@ void fsmc_native_sram_init(void) {
gpio_set_mode(GPIOE_BASE, 0, MODE_AF_OUTPUT_PP); // NBL0
gpio_set_mode(GPIOE_BASE, 1, MODE_AF_OUTPUT_PP); // NBL1
+
+ // Next enable the clock
+ rcc_enable_clk_fsmc();
// Then we configure channel 1 the FSMC SRAM peripheral
// (all SRAM channels are in "Bank 1" of the FSMC)