Skip to content

Commit 850343f

Browse files
committed
Merge pull request #564 from ArdaFu/master
[bsp][stm32f746g-disco] Fix MPU init bug.
2 parents b67ad86 + 1c91512 commit 850343f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bsp/stm32f7-disco/drivers/board.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <rtthread.h>
2626
#include "board.h"
2727
#include "sram.h"
28-
28+
#include "drv_mpu.h"
2929

3030
/**
3131
* @addtogroup STM32
@@ -165,7 +165,7 @@ void HAL_ResumeTick(void)
165165
void rt_hw_board_init()
166166
{
167167
/* Configure the MPU attributes as Write Through */
168-
//mpu_init();
168+
mpu_init();
169169

170170
/* Enable the CPU Cache */
171171
CPU_CACHE_Enable();

bsp/stm32f7-disco/drivers/drv_mpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ int mpu_init(void)
8181
HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
8282
return 0;
8383
}
84-
INIT_BOARD_EXPORT(mpu_init);
84+
//INIT_BOARD_EXPORT(mpu_init);

0 commit comments

Comments
 (0)