FSMC. SDRAM. Added safety mask for SDRTR register

This commit is contained in:
barthess 2014-10-25 15:54:24 +03:00
parent e874067224
commit 1c50a03cfd
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ static void _sdram_init_sequence(const SDRAMConfig *cfgp) {
/* Step 8: Set clock.*/ /* Step 8: Set clock.*/
_sdram_wait_ready(); _sdram_wait_ready();
SDRAMD.sdram->SDRTR = cfgp->sdrtr; SDRAMD.sdram->SDRTR = cfgp->sdrtr & FMC_SDRTR_COUNT;
_sdram_wait_ready(); _sdram_wait_ready();
} }