Skip to content

Commit 6522067

Browse files
committed
fix imxrt build
1 parent cc19c02 commit 6522067

File tree

13 files changed

+35
-11
lines changed

13 files changed

+35
-11
lines changed

hw/bsp/imxrt/boards/metro_m7_1011/board.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@
4949
#define UART_PORT LPUART1
5050
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
5151

52+
static inline void BOARD_ConfigMPU(void) {
53+
}
54+
5255
#endif

hw/bsp/imxrt/boards/metro_m7_1011_sd/board.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@
4949
#define UART_PORT LPUART1
5050
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
5151

52+
static inline void BOARD_ConfigMPU(void) {
53+
}
54+
5255
#endif

hw/bsp/imxrt/boards/mimxrt1010_evk/board.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@
4949
#define UART_PORT LPUART1
5050
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
5151

52+
static inline void BOARD_ConfigMPU(void) {
53+
}
54+
5255
#endif

hw/bsp/imxrt/boards/mimxrt1015_evk/board.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,7 @@
5353
#define UART_RX_PINMUX IOMUXC_GPIO_AD_B0_07_LPUART1_RX
5454
#define UART_TX_PINMUX IOMUXC_GPIO_AD_B0_06_LPUART1_TX
5555

56+
static inline void BOARD_ConfigMPU(void) {
57+
}
58+
5659
#endif

hw/bsp/imxrt/boards/mimxrt1020_evk/board.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@
4949
#define UART_PORT LPUART1
5050
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
5151

52+
static inline void BOARD_ConfigMPU(void) {
53+
}
54+
5255
#endif

hw/bsp/imxrt/boards/mimxrt1024_evk/board.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,7 @@
5050
#define UART_PORT LPUART1
5151
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
5252

53+
static inline void BOARD_ConfigMPU(void) {
54+
}
55+
5356
#endif

hw/bsp/imxrt/boards/mimxrt1050_evkb/board.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@
4949
#define UART_PORT LPUART1
5050
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
5151

52+
static inline void BOARD_ConfigMPU(void) {
53+
}
54+
5255
#endif

hw/bsp/imxrt/boards/mimxrt1060_evk/board.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@
4949
#define UART_PORT LPUART1
5050
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
5151

52+
static inline void BOARD_ConfigMPU(void) {
53+
}
54+
5255
#endif

hw/bsp/imxrt/boards/mimxrt1064_evk/board.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@
4949
#define UART_PORT LPUART1
5050
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
5151

52+
static inline void BOARD_ConfigMPU(void) {
53+
}
54+
5255
#endif

hw/bsp/imxrt/boards/mimxrt1170_evkb/board.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,11 @@
4949
#define UART_PORT LPUART1
5050
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_LPUART10_CLK_ROOT
5151

52-
// Additional board init for MPU configuration
53-
#define BOARD_INIT_2 1
54-
5552
//--------------------------------------------------------------------
5653
// MPU configuration
5754
//--------------------------------------------------------------------
5855
#if __CORTEX_M == 7
59-
static void BOARD_ConfigMPU(void) {
56+
static inline void BOARD_ConfigMPU(void) {
6057
#if defined(__CC_ARM) || defined(__ARMCC_VERSION)
6158
extern uint32_t Image$$RW_m_ncache$$Base[];
6259
/* RW_m_ncache_unused is a auxiliary region which is used to get the whole size of noncache section */
@@ -434,8 +431,5 @@ static void BOARD_ConfigMPU(void) {
434431
}
435432
#endif
436433

437-
static void board_init2() {
438-
BOARD_ConfigMPU();
439-
}
440434

441435
#endif

0 commit comments

Comments
 (0)