diff options
author | barthess <barthess@yandex.ru> | 2014-10-25 15:54:24 +0300 |
---|---|---|
committer | barthess <barthess@yandex.ru> | 2014-10-25 15:54:24 +0300 |
commit | 1c50a03cfd17090f39004849c79e1e6ce8874e05 (patch) | |
tree | 3f7627c4e7ae7e3616ed72027fefd75f8c581df1 | |
parent | e87406722421e216deb91fa32e08e36b3dd03c91 (diff) | |
download | ChibiOS-Contrib-1c50a03cfd17090f39004849c79e1e6ce8874e05.tar.gz ChibiOS-Contrib-1c50a03cfd17090f39004849c79e1e6ce8874e05.tar.bz2 ChibiOS-Contrib-1c50a03cfd17090f39004849c79e1e6ce8874e05.zip |
FSMC. SDRAM. Added safety mask for SDRTR register
-rw-r--r-- | os/hal/ports/STM32/LLD/FSMCv1/fsmc_sdram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/FSMCv1/fsmc_sdram.c b/os/hal/ports/STM32/LLD/FSMCv1/fsmc_sdram.c index 25da179..e635323 100644 --- a/os/hal/ports/STM32/LLD/FSMCv1/fsmc_sdram.c +++ b/os/hal/ports/STM32/LLD/FSMCv1/fsmc_sdram.c @@ -125,7 +125,7 @@ static void _sdram_init_sequence(const SDRAMConfig *cfgp) { /* Step 8: Set clock.*/ _sdram_wait_ready(); - SDRAMD.sdram->SDRTR = cfgp->sdrtr; + SDRAMD.sdram->SDRTR = cfgp->sdrtr & FMC_SDRTR_COUNT; _sdram_wait_ready(); } |