Skip to content

Commit 89dce68

Browse files
committed
minor update board.h
1 parent efcc2b6 commit 89dce68

File tree

11 files changed

+38
-51
lines changed

11 files changed

+38
-51
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@
2424
* This file is part of the TinyUSB stack.
2525
*/
2626

27+
#ifndef BOARD_M7_1011_H_
28+
#define BOARD_M7_1011_H_
2729

28-
#ifndef BOARD_H_
29-
#define BOARD_H_
30-
31-
#include "fsl_device_registers.h"
32-
33-
// required since iMX RT10xx SDK include this file for board size
30+
// required since iMXRT MCUX-SDK include this file for board size
3431
#define BOARD_FLASH_SIZE (8*1024*1024)
3532

3633
// LED: IOMUXC_GPIO_03_GPIOMUX_IO03
@@ -47,4 +44,4 @@
4744
#define UART_PORT LPUART1
4845
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
4946

50-
#endif /* BOARD_H_ */
47+
#endif

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@
2424
* This file is part of the TinyUSB stack.
2525
*/
2626

27+
#ifndef BOARD_METRO_M7_1011_SD_H_
28+
#define BOARD_METRO_M7_1011_SD_H_
2729

28-
#ifndef BOARD_H_
29-
#define BOARD_H_
30-
31-
#include "fsl_device_registers.h"
32-
33-
// required since iMX RT10xx SDK include this file for board size
30+
// required since iMXRT MCUX-SDK include this file for board size
3431
#define BOARD_FLASH_SIZE (8*1024*1024)
3532

3633
// LED: IOMUXC_GPIO_03_GPIOMUX_IO03
@@ -47,4 +44,4 @@
4744
#define UART_PORT LPUART1
4845
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
4946

50-
#endif /* BOARD_H_ */
47+
#endif

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424
* This file is part of the TinyUSB stack.
2525
*/
2626

27+
#ifndef BOARD_MIMXRT1010_EVK_H_
28+
#define BOARD_MIMXRT1010_EVK_H_
2729

28-
#ifndef BOARD_H_
29-
#define BOARD_H_
30-
31-
// required since iMX RT10xx SDK include this file for board size
30+
// required since iMXRT MCUX-SDK include this file for board size
3231
#define BOARD_FLASH_SIZE (0x1000000U)
3332

3433
// LED: IOMUXC_GPIO_11_GPIOMUX_IO11
@@ -45,4 +44,4 @@
4544
#define UART_PORT LPUART1
4645
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
4746

48-
#endif /* BOARD_H_ */
47+
#endif

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424
* This file is part of the TinyUSB stack.
2525
*/
2626

27+
#ifndef BOARD_MIMXRT1015_EVK_H_
28+
#define BOARD_MIMXRT1015_EVK_H_
2729

28-
#ifndef BOARD_H_
29-
#define BOARD_H_
30-
31-
// required since iMX RT10xx SDK include this file for board size
30+
// required since iMXRT MCUX-SDK include this file for board size
3231
#define BOARD_FLASH_SIZE (0x1000000U)
3332

3433
// LED
@@ -49,4 +48,4 @@
4948
#define UART_RX_PINMUX IOMUXC_GPIO_AD_B0_07_LPUART1_RX
5049
#define UART_TX_PINMUX IOMUXC_GPIO_AD_B0_06_LPUART1_TX
5150

52-
#endif /* BOARD_H_ */
51+
#endif

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424
* This file is part of the TinyUSB stack.
2525
*/
2626

27+
#ifndef BOARD_MIMXRT1020_EVK_H_
28+
#define BOARD_MIMXRT1020_EVK_H_
2729

28-
#ifndef BOARD_H_
29-
#define BOARD_H_
30-
31-
// required since iMX RT10xx SDK include this file for board size
30+
// required since iMXRT MCUX-SDK include this file for board size
3231
#define BOARD_FLASH_SIZE (0x800000U)
3332

3433
// LED: IOMUXC_GPIO_AD_B0_05_GPIO1_IO05
@@ -45,4 +44,4 @@
4544
#define UART_PORT LPUART1
4645
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
4746

48-
#endif /* BOARD_H_ */
47+
#endif

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424
* This file is part of the TinyUSB stack.
2525
*/
2626

27+
#ifndef BOARD_MIMXRT1024_EVK_H_
28+
#define BOARD_MIMXRT1024_EVK_H_
2729

28-
#ifndef BOARD_H_
29-
#define BOARD_H_
30-
31-
// required since iMX RT10xx SDK include this file for board size
30+
// required since iMXRT MCUX-SDK include this file for board size
3231
// RT1020-EVK #define BOARD_FLASH_SIZE (0x800000U)
3332
#define BOARD_FLASH_SIZE (0x400000U) // builtin flash of RT1024
3433

@@ -46,4 +45,4 @@
4645
#define UART_PORT LPUART1
4746
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
4847

49-
#endif /* BOARD_H_ */
48+
#endif

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424
* This file is part of the TinyUSB stack.
2525
*/
2626

27+
#ifndef BOARD_MIMXRT1050_EVKB_H_
28+
#define BOARD_MIMXRT1050_EVKB_H_
2729

28-
#ifndef BOARD_H_
29-
#define BOARD_H_
30-
31-
// required since iMX RT10xx SDK include this file for board size
30+
// required since iMXRT MCUX-SDK include this file for board size
3231
#define BOARD_FLASH_SIZE (0x4000000U)
3332

3433
// LED: IOMUXC_GPIO_AD_B0_09_GPIO1_IO09
@@ -45,4 +44,4 @@
4544
#define UART_PORT LPUART1
4645
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
4746

48-
#endif /* BOARD_H_ */
47+
#endif

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424
* This file is part of the TinyUSB stack.
2525
*/
2626

27+
#ifndef BOARD_MIMXRT1060_EVKB_H_
28+
#define BOARD_MIMXRT1060_EVKB_H_
2729

28-
#ifndef BOARD_H_
29-
#define BOARD_H_
30-
31-
// required since iMX RT10xx SDK include this file for board size
30+
// required since iMXRT MCUX-SDK include this file for board size
3231
#define BOARD_FLASH_SIZE (0x800000U)
3332

3433
// LED: IOMUXC_GPIO_AD_B0_09_GPIO1_IO09
@@ -45,4 +44,4 @@
4544
#define UART_PORT LPUART1
4645
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
4746

48-
#endif /* BOARD_H_ */
47+
#endif

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424
* This file is part of the TinyUSB stack.
2525
*/
2626

27+
#ifndef BOARD_MIMXRT1064_EVKB_H_
28+
#define BOARD_MIMXRT1064_EVKB_H_
2729

28-
#ifndef BOARD_H_
29-
#define BOARD_H_
30-
31-
// required since iMX RT10xx SDK include this file for board size
30+
// required since iMXRT MCUX-SDK include this file for board size
3231
#define BOARD_FLASH_SIZE (0x400000U)
3332

3433
// LED: IOMUXC_GPIO_AD_B0_09_GPIO1_IO09
@@ -45,4 +44,4 @@
4544
#define UART_PORT LPUART1
4645
#define UART_CLK_ROOT BOARD_BOOTCLOCKRUN_UART_CLK_ROOT
4746

48-
#endif /* BOARD_H_ */
47+
#endif

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#define BOARD_H_
3030

3131

32-
// required since iMX RT10xx SDK include this file for board size
32+
// required since iMXRT MCUX-SDK include this file for board size
3333
#define BOARD_FLASH_SIZE (2 * 1024 * 1024)
3434

3535
// LED D13: IOMUXC_GPIO_B0_03_GPIO2_IO03

0 commit comments

Comments
 (0)