Skip to content

Commit 19ca025

Browse files
pi-anldpgeorge
authored andcommitted
stm32/sdram: Fix to use new mpu_config_start/mpu_config_end signature.
1 parent 19e8774 commit 19ca025

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/stm32/sdram.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@ static void sdram_init_seq(SDRAM_HandleTypeDef
248248
Initially disable all access for the entire SDRAM memory space,
249249
then enable access/caching for the size used
250250
*/
251-
mpu_config_start();
251+
uint32_t irq_state = mpu_config_start();
252252
mpu_config_region(MPU_REGION_SDRAM1, SDRAM_START_ADDRESS, MPU_CONFIG_DISABLE(0x00, MPU_REGION_SIZE_512MB));
253253
mpu_config_region(MPU_REGION_SDRAM2, SDRAM_START_ADDRESS, MPU_CONFIG_SDRAM(SDRAM_MPU_REGION_SIZE));
254-
mpu_config_end();
254+
mpu_config_end(irq_state);
255255
#endif
256256
}
257257

0 commit comments

Comments
 (0)