diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-08-07 21:25:51 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-08-07 21:25:51 -0400 |
commit | b2dd49c3141d8a21a4e7c7ef51dee7329f847c30 (patch) | |
tree | 6677879437eb8b227ee64b71dcfeb6d707b68af9 /libmaple | |
parent | 7b391d7f76a2d56242420c560d65f00a60f78682 (diff) | |
download | librambutan-b2dd49c3141d8a21a4e7c7ef51dee7329f847c30.tar.gz librambutan-b2dd49c3141d8a21a4e7c7ef51dee7329f847c30.zip |
FSMC tweaks
Diffstat (limited to 'libmaple')
-rw-r--r-- | libmaple/fsmc.c | 3 |
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) |