소스 검색

Merge pull request #564 from ArdaFu/master

[bsp][stm32f746g-disco] Fix MPU init bug.
Bernard Xiong 9 년 전
부모
커밋
850343f353
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      bsp/stm32f7-disco/drivers/board.c
  2. 1 1
      bsp/stm32f7-disco/drivers/drv_mpu.c

+ 2 - 2
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();

+ 1 - 1
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);