Skip to content

Instantly share code, notes, and snippets.

View glegrain's full-sized avatar

Guillaume Legrain glegrain

View GitHub Profile
@glegrain
glegrain / mpu.c
Created November 6, 2020 07:59
STM32H7 MPU Configuration
/**
* @brief Configure the MPU attributes as Write Through for External SDRAM.
* @note The Base Address is 0xD0000000 .
* The Configured Region Size is 32MB because same as SDRAM size.
* @param None
* @retval None
*/
void MPU_Config(void)
{
MPU_Region_InitTypeDef MPU_InitStruct;