diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-09-12 21:29:50 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-09-12 21:29:50 -0400 |
commit | cfede8b93422fa48f6240d53380934b4cbcc3d63 (patch) | |
tree | cb3879bf96152c50b5bfa332c8ab7e189f1b0f87 | |
parent | db61b9278266ffabd9c10106e39aa9c8f5b04059 (diff) | |
download | librambutan-cfede8b93422fa48f6240d53380934b4cbcc3d63.tar.gz librambutan-cfede8b93422fa48f6240d53380934b4cbcc3d63.zip |
maple_native.cpp: Cosmetics.
Stick FSMC_BCR_MTYP_SRAM among the bitfields assigned to the BCR
write. Technically not necessary (SRAM is the default after reset),
but good for readability and future-proofing.
-rw-r--r-- | wirish/boards/maple_native.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wirish/boards/maple_native.cpp b/wirish/boards/maple_native.cpp index 5e0cad3..821be77 100644 --- a/wirish/boards/maple_native.cpp +++ b/wirish/boards/maple_native.cpp @@ -192,8 +192,8 @@ static void initSRAMChip(void) { fsmc_sram_init_gpios(); rcc_clk_enable(RCC_FSMC); - // FIXME [0.0.12] doesn't this need FSMC_BCR_MTYP_SRAM? - regs->BCR = FSMC_BCR_WREN | FSMC_BCR_MWID_16BITS | FSMC_BCR_MBKEN; + regs->BCR = (FSMC_BCR_WREN | FSMC_BCR_MWID_16BITS | FSMC_BCR_MTYP_SRAM | + FSMC_BCR_MBKEN); fsmc_nor_psram_set_addset(regs, 0); fsmc_nor_psram_set_datast(regs, 3); } |