diff options
| author | ardafu <[email protected]> | 2015-10-13 09:49:27 +0800 |
|---|---|---|
| committer | ardafu <[email protected]> | 2015-10-13 09:49:27 +0800 |
| commit | 1c91512e97b6591c9f6b0ef28e28b6de4f86c826 (patch) | |
| tree | 05c35513aa4e5e73a23e36f799729f0f01524ee6 | |
| parent | b67ad86ec388993053716c808f3b9073969d1a8c (diff) | |
[bsp][stm32f746g-disco] Fix MPU init bug.
1. Fixed the bug that MPU init function was called 2 times.
| -rw-r--r-- | bsp/stm32f7-disco/drivers/board.c | 4 | ||||
| -rw-r--r-- | bsp/stm32f7-disco/drivers/drv_mpu.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bsp/stm32f7-disco/drivers/board.c b/bsp/stm32f7-disco/drivers/board.c index 0553920a47..02f0acf2e6 100644 --- a/bsp/stm32f7-disco/drivers/board.c +++ b/bsp/stm32f7-disco/drivers/board.c @@ -25,7 +25,7 @@ #include <rtthread.h> #include "board.h" #include "sram.h" - +#include "drv_mpu.h" /** * @addtogroup STM32 @@ -165,7 +165,7 @@ void HAL_ResumeTick(void) void rt_hw_board_init() { /* Configure the MPU attributes as Write Through */ - //mpu_init(); + mpu_init(); /* Enable the CPU Cache */ CPU_CACHE_Enable(); diff --git a/bsp/stm32f7-disco/drivers/drv_mpu.c b/bsp/stm32f7-disco/drivers/drv_mpu.c index 630e48e2d2..ecf556203b 100644 --- a/bsp/stm32f7-disco/drivers/drv_mpu.c +++ b/bsp/stm32f7-disco/drivers/drv_mpu.c @@ -81,4 +81,4 @@ int mpu_init(void) HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT); return 0; } -INIT_BOARD_EXPORT(mpu_init); +//INIT_BOARD_EXPORT(mpu_init); |
