Callisto4Bootloader: board/board.h File Reference

Callisto4Bootloader

Macros | Functions
board.h File Reference
`#include "clock_config.h"`
`#include "fsl_common.h"`
`#include "fsl_gpio.h"`
`#include "fsl_clock.h"`

Go to the source code of this file.

## Macros

#define | BOARD_NAME "MIMXRT1060-EVK"
| The board name. More...
#define | BOARD_DEBUG_UART_TYPE kSerialPort_Uart
#define | BOARD_DEBUG_UART_BASEADDR (uint32_t) LPUART1
#define | BOARD_DEBUG_UART_INSTANCE 1U
#define | BOARD_DEBUG_UART_CLK_FREQ BOARD_DebugConsoleSrcFreq()
#define | BOARD_UART_IRQ LPUART1_IRQn
#define | BOARD_UART_IRQ_HANDLER LPUART1_IRQHandler
#define | BOARD_DEBUG_UART_BAUDRATE (115200U)
#define | LOGIC_LED_ON (0U)
| The USER_LED used for board. More...
#define | LOGIC_LED_OFF (1U)
#define | BOARD_USER_LED_GPIO GPIO2
#define | BOARD_USER_LED_GPIO_PIN (9U)
#define | USER_LED_INIT(output)
#define | USER_LED_ON() GPIO_PortClear(BOARD_USER_LED_GPIO, 1U << BOARD_USER_LED_GPIO_PIN)
#define | USER_LED_OFF() GPIO_PortSet(BOARD_USER_LED_GPIO, 1U << BOARD_USER_LED_GPIO_PIN)
#define | USER_LED_TOGGLE()
#define | BOARD_USER_BUTTON_GPIO GPIO5
| Define the port interrupt number for the board switches. More...
#define | BOARD_USER_BUTTON_GPIO_PIN (0U)
#define | BOARD_USER_BUTTON_IRQ GPIO5_Combined_0_15_IRQn
#define | BOARD_USER_BUTTON_IRQ_HANDLER GPIO5_Combined_0_15_IRQHandler
#define | BOARD_USER_BUTTON_NAME "SW8"
#define | BOARD_FLASH_SIZE (0x800000U)
| The board flash size. More...
#define | BOARD_ENET0_PHY_ADDRESS (0x02U) /* Phy address of enet port 0. */
| The ENET PHY address. More...
#define | BOARD_USB_PHY_D_CAL (0x0CU)
#define | BOARD_USB_PHY_TXCAL45DP (0x06U)
#define | BOARD_USB_PHY_TXCAL45DM (0x06U)
#define | BOARD_ARDUINO_INT_IRQ (GPIO1_INT3_IRQn)
#define | BOARD_ARDUINO_I2C_IRQ (LPI2C1_IRQn)
#define | BOARD_ARDUINO_I2C_INDEX (1)
#define | BOARD_USDHC1_BASEADDR USDHC1
#define | BOARD_USDHC2_BASEADDR USDHC2
#define | BOARD_USDHC_CD_GPIO_BASE GPIO2
#define | BOARD_USDHC_CD_GPIO_PIN 28
#define | BOARD_USDHC_CD_PORT_IRQ GPIO2_Combined_16_31_IRQn
#define | BOARD_USDHC_CD_PORT_IRQ_HANDLER GPIO2_Combined_16_31_IRQHandler
#define | BOARD_USDHC_CD_STATUS() (GPIO_PinRead(BOARD_USDHC_CD_GPIO_BASE, BOARD_USDHC_CD_GPIO_PIN))
#define | BOARD_USDHC_CD_INTERRUPT_STATUS() (GPIO_PortGetInterruptFlags(BOARD_USDHC_CD_GPIO_BASE))
#define | BOARD_USDHC_CD_CLEAR_INTERRUPT(flag) (GPIO_PortClearInterruptFlags(BOARD_USDHC_CD_GPIO_BASE, flag))
#define | BOARD_USDHC_CD_GPIO_INIT()
#define | BOARD_HAS_SDCARD (1U)
#define | BOARD_SD_POWER_RESET_GPIO (GPIO1)
#define | BOARD_SD_POWER_RESET_GPIO_PIN (19U)
#define | BOARD_USDHC_CARD_INSERT_CD_LEVEL (0U)
#define | BOARD_USDHC_MMCCARD_POWER_CONTROL(state)
#define | BOARD_USDHC_MMCCARD_POWER_CONTROL_INIT()
#define | BOARD_USDHC_SDCARD_POWER_CONTROL_INIT()
#define | BOARD_USDHC_SDCARD_POWER_CONTROL(state) (GPIO_PinWrite(BOARD_SD_POWER_RESET_GPIO, BOARD_SD_POWER_RESET_GPIO_PIN, state))
#define | BOARD_USDHC1_CLK_FREQ (CLOCK_GetSysPfdFreq(kCLOCK_Pfd0) / (CLOCK_GetDiv(kCLOCK_Usdhc1Div) + 1U))
#define | BOARD_USDHC2_CLK_FREQ (CLOCK_GetSysPfdFreq(kCLOCK_Pfd0) / (CLOCK_GetDiv(kCLOCK_Usdhc2Div) + 1U))
#define | BOARD_SD_HOST_BASEADDR BOARD_USDHC1_BASEADDR
#define | BOARD_SD_HOST_CLK_FREQ BOARD_USDHC1_CLK_FREQ
#define | BOARD_SD_HOST_IRQ USDHC1_IRQn
#define | BOARD_MMC_HOST_BASEADDR BOARD_USDHC2_BASEADDR
#define | BOARD_MMC_HOST_CLK_FREQ BOARD_USDHC2_CLK_FREQ
#define | BOARD_MMC_HOST_IRQ USDHC2_IRQn
#define | BOARD_MMC_VCCQ_SUPPLY kMMC_VoltageWindow170to195
#define | BOARD_MMC_VCC_SUPPLY kMMC_VoltageWindows270to360
#define | BOARD_MMC_SUPPORT_8BIT_BUS (1U)
#define | BOARD_SD_HOST_SUPPORT_SDR104_FREQ (200000000U)
#define | BOARD_SD_HOST_SUPPORT_HS200_FREQ (180000000U)
#define | BOARD_INITGT202SHIELD_PWRON_GPIO GPIO1
| The WIFI-QCA shield pin. More...
#define | BOARD_INITGT202SHIELD_PWRON_PORT 1U
#define | BOARD_INITGT202SHIELD_PWRON_GPIO_PIN 3U
#define | BOARD_INITGT202SHIELD_PWRON_PIN_NAME GPIO1_3
#define | BOARD_INITGT202SHIELD_PWRON_LABEL "PWRON"
#define | BOARD_INITGT202SHIELD_PWRON_NAME "PWRON"
#define | BOARD_INITGT202SHIELD_PWRON_DIRECTION kGPIO_DigitalOutput
#define | BOARD_INITGT202SHIELD_IRQ_GPIO GPIO1
#define | BOARD_INITGT202SHIELD_IRQ_PORT 1U
#define | BOARD_INITGT202SHIELD_IRQ_GPIO_PIN 19U
#define | BOARD_INITGT202SHIELD_IRQ_PIN_NAME GPIO1_19
#define | BOARD_INITGT202SHIELD_IRQ_LABEL "IRQ"
#define | BOARD_INITGT202SHIELD_IRQ_NAME "IRQ"
#define | BOARD_INITGT202SHIELD_IRQ_DIRECTION kGPIO_DigitalInput
#define | BOARD_INITSILEX2401SHIELD_PWRON_GPIO GPIO1
#define | BOARD_INITSILEX2401SHIELD_PWRON_PORT 1U
#define | BOARD_INITSILEX2401SHIELD_PWRON_GPIO_PIN 9U
#define | BOARD_INITSILEX2401SHIELD_PWRON_PIN_NAME GPIO1_9
#define | BOARD_INITSILEX2401SHIELD_PWRON_LABEL "PWRON"
#define | BOARD_INITSILEX2401SHIELD_PWRON_NAME "PWRON"
#define | BOARD_INITSILEX2401SHIELD_PWRON_DIRECTION kGPIO_DigitalOutput
#define | BOARD_INITSILEX2401SHIELD_IRQ_GPIO GPIO1
#define | BOARD_INITSILEX2401SHIELD_IRQ_PORT 1U
#define | BOARD_INITSILEX2401SHIELD_IRQ_GPIO_PIN 11U
#define | BOARD_INITSILEX2401SHIELD_IRQ_PIN_NAME GPIO1_11
#define | BOARD_INITSILEX2401SHIELD_IRQ_LABEL "IRQ"
#define | BOARD_INITSILEX2401SHIELD_IRQ_NAME "IRQ"
#define | BOARD_INITSILEX2401SHIELD_IRQ_DIRECTION kGPIO_DigitalInput
#define | BOARD_ACCEL_I2C_BASEADDR LPI2C1
#define | BOARD_ACCEL_I2C_CLOCK_SOURCE_SELECT (0U)
#define | BOARD_ACCEL_I2C_CLOCK_SOURCE_DIVIDER (5U)
#define | BOARD_ACCEL_I2C_CLOCK_FREQ (CLOCK_GetFreq(kCLOCK_Usb1PllClk) / 8 / (BOARD_ACCEL_I2C_CLOCK_SOURCE_DIVIDER + 1U))
#define | BOARD_CODEC_I2C_BASEADDR LPI2C1
#define | BOARD_CODEC_I2C_INSTANCE 1U
#define | BOARD_CODEC_I2C_CLOCK_SOURCE_SELECT (0U)
#define | BOARD_CODEC_I2C_CLOCK_SOURCE_DIVIDER (5U)
#define | BOARD_CODEC_I2C_CLOCK_FREQ (10000000U)
#define | BOARD_CAMERA_I2C_BASEADDR LPI2C1
#define | BOARD_CAMERA_I2C_CLOCK_SOURCE_DIVIDER (5U)
#define | BOARD_CAMERA_I2C_CLOCK_SOURCE_SELECT (0U) /* Select USB1 PLL (480 MHz) as LPI2C's clock source */
#define | BOARD_CAMERA_I2C_CLOCK_FREQ (CLOCK_GetFreq(kCLOCK_Usb1PllClk) / 8 / (BOARD_CAMERA_I2C_CLOCK_SOURCE_DIVIDER + 1U))
#define | BOARD_CAMERA_I2C_SCL_GPIO GPIO1
#define | BOARD_CAMERA_I2C_SCL_PIN 16
#define | BOARD_CAMERA_I2C_SDA_GPIO GPIO1
#define | BOARD_CAMERA_I2C_SDA_PIN 17
#define | BOARD_CAMERA_PWDN_GPIO GPIO1
#define | BOARD_CAMERA_PWDN_PIN 4
#define | BOARD_BT_UART_BASEADDR LPUART3
#define | BOARD_BT_UART_CLK_FREQ BOARD_DebugConsoleSrcFreq()
#define | BOARD_BT_UART_IRQ LPUART3_IRQn
#define | BOARD_BT_UART_IRQ_HANDLER LPUART3_IRQHandler

## Functions

uint32_t | BOARD_DebugConsoleSrcFreq (void)
void | BOARD_InitDebugConsole (void)
void | BOARD_ConfigMPU (void)
void | BOARD_SD_Pin_Config (uint32_t speed, uint32_t strength)
void | BOARD_MMC_Pin_Config (uint32_t speed, uint32_t strength)

## Macro Definition Documentation

## ◆ BOARD_ACCEL_I2C_BASEADDR

#define BOARD_ACCEL_I2C_BASEADDR LPI2C1

Definition at line 196 of file board.h.

## ◆ BOARD_ACCEL_I2C_CLOCK_FREQ

#define BOARD_ACCEL_I2C_CLOCK_FREQ (CLOCK_GetFreq(kCLOCK_Usb1PllClk) / 8 / (BOARD_ACCEL_I2C_CLOCK_SOURCE_DIVIDER + 1U))

Definition at line 201 of file board.h.

## ◆ BOARD_ACCEL_I2C_CLOCK_SOURCE_DIVIDER

#define BOARD_ACCEL_I2C_CLOCK_SOURCE_DIVIDER (5U)

Definition at line 200 of file board.h.

## ◆ BOARD_ACCEL_I2C_CLOCK_SOURCE_SELECT

#define BOARD_ACCEL_I2C_CLOCK_SOURCE_SELECT (0U)

Definition at line 198 of file board.h.

## ◆ BOARD_ARDUINO_I2C_INDEX

#define BOARD_ARDUINO_I2C_INDEX (1)

Definition at line 85 of file board.h.

## ◆ BOARD_ARDUINO_I2C_IRQ

#define BOARD_ARDUINO_I2C_IRQ (LPI2C1_IRQn)

Definition at line 84 of file board.h.

## ◆ BOARD_ARDUINO_INT_IRQ

#define BOARD_ARDUINO_INT_IRQ (GPIO1_INT3_IRQn)

Definition at line 83 of file board.h.

## ◆ BOARD_BT_UART_BASEADDR

#define BOARD_BT_UART_BASEADDR LPUART3

Definition at line 224 of file board.h.

## ◆ BOARD_BT_UART_CLK_FREQ

#define BOARD_BT_UART_CLK_FREQ BOARD_DebugConsoleSrcFreq()

Definition at line 225 of file board.h.

## ◆ BOARD_BT_UART_IRQ

#define BOARD_BT_UART_IRQ LPUART3_IRQn

Definition at line 226 of file board.h.

## ◆ BOARD_BT_UART_IRQ_HANDLER

#define BOARD_BT_UART_IRQ_HANDLER LPUART3_IRQHandler

Definition at line 227 of file board.h.

## ◆ BOARD_CAMERA_I2C_BASEADDR

#define BOARD_CAMERA_I2C_BASEADDR LPI2C1

Definition at line 210 of file board.h.

## ◆ BOARD_CAMERA_I2C_CLOCK_FREQ

#define BOARD_CAMERA_I2C_CLOCK_FREQ (CLOCK_GetFreq(kCLOCK_Usb1PllClk) / 8 / (BOARD_CAMERA_I2C_CLOCK_SOURCE_DIVIDER + 1U))

Definition at line 213 of file board.h.

## ◆ BOARD_CAMERA_I2C_CLOCK_SOURCE_DIVIDER

#define BOARD_CAMERA_I2C_CLOCK_SOURCE_DIVIDER (5U)

Definition at line 211 of file board.h.

## ◆ BOARD_CAMERA_I2C_CLOCK_SOURCE_SELECT

#define BOARD_CAMERA_I2C_CLOCK_SOURCE_SELECT (0U) /* Select USB1 PLL (480 MHz) as LPI2C's clock source */

Definition at line 212 of file board.h.

## ◆ BOARD_CAMERA_I2C_SCL_GPIO

#define BOARD_CAMERA_I2C_SCL_GPIO GPIO1

Definition at line 216 of file board.h.

## ◆ BOARD_CAMERA_I2C_SCL_PIN

#define BOARD_CAMERA_I2C_SCL_PIN 16

Definition at line 217 of file board.h.

## ◆ BOARD_CAMERA_I2C_SDA_GPIO

#define BOARD_CAMERA_I2C_SDA_GPIO GPIO1

Definition at line 218 of file board.h.

## ◆ BOARD_CAMERA_I2C_SDA_PIN

#define BOARD_CAMERA_I2C_SDA_PIN 17

Definition at line 219 of file board.h.

## ◆ BOARD_CAMERA_PWDN_GPIO

#define BOARD_CAMERA_PWDN_GPIO GPIO1

Definition at line 220 of file board.h.

## ◆ BOARD_CAMERA_PWDN_PIN

#define BOARD_CAMERA_PWDN_PIN 4

Definition at line 221 of file board.h.

## ◆ BOARD_CODEC_I2C_BASEADDR

#define BOARD_CODEC_I2C_BASEADDR LPI2C1

Definition at line 203 of file board.h.

## ◆ BOARD_CODEC_I2C_CLOCK_FREQ

#define BOARD_CODEC_I2C_CLOCK_FREQ (10000000U)

Definition at line 207 of file board.h.

## ◆ BOARD_CODEC_I2C_CLOCK_SOURCE_DIVIDER

#define BOARD_CODEC_I2C_CLOCK_SOURCE_DIVIDER (5U)

Definition at line 206 of file board.h.

## ◆ BOARD_CODEC_I2C_CLOCK_SOURCE_SELECT

#define BOARD_CODEC_I2C_CLOCK_SOURCE_SELECT (0U)

Definition at line 205 of file board.h.

## ◆ BOARD_CODEC_I2C_INSTANCE

#define BOARD_CODEC_I2C_INSTANCE 1U

Definition at line 204 of file board.h.

## ◆ BOARD_DEBUG_UART_BASEADDR

#define BOARD_DEBUG_UART_BASEADDR (uint32_t) LPUART1

Definition at line 23 of file board.h.

## ◆ BOARD_DEBUG_UART_BAUDRATE

#define BOARD_DEBUG_UART_BAUDRATE (115200U)

Definition at line 32 of file board.h.

## ◆ BOARD_DEBUG_UART_CLK_FREQ

#define BOARD_DEBUG_UART_CLK_FREQ BOARD_DebugConsoleSrcFreq()

Definition at line 26 of file board.h.

## ◆ BOARD_DEBUG_UART_INSTANCE

#define BOARD_DEBUG_UART_INSTANCE 1U

Definition at line 24 of file board.h.

## ◆ BOARD_DEBUG_UART_TYPE

#define BOARD_DEBUG_UART_TYPE kSerialPort_Uart

Definition at line 22 of file board.h.

## ◆ BOARD_ENET0_PHY_ADDRESS

#define BOARD_ENET0_PHY_ADDRESS (0x02U) /* Phy address of enet port 0. */

The ENET PHY address.

Definition at line 76 of file board.h.

## ◆ BOARD_FLASH_SIZE

#define BOARD_FLASH_SIZE (0x800000U)

The board flash size.

Definition at line 73 of file board.h.

## ◆ BOARD_HAS_SDCARD

#define BOARD_HAS_SDCARD (1U)

Definition at line 109 of file board.h.

## ◆ BOARD_INITGT202SHIELD_IRQ_DIRECTION

#define BOARD_INITGT202SHIELD_IRQ_DIRECTION kGPIO_DigitalInput

Direction

Definition at line 177 of file board.h.

## ◆ BOARD_INITGT202SHIELD_IRQ_GPIO

#define BOARD_INITGT202SHIELD_IRQ_GPIO GPIO1

GPIO device name: GPIO

Definition at line 171 of file board.h.

## ◆ BOARD_INITGT202SHIELD_IRQ_GPIO_PIN

#define BOARD_INITGT202SHIELD_IRQ_GPIO_PIN 19U

PIO1 pin index: 19

Definition at line 173 of file board.h.

## ◆ BOARD_INITGT202SHIELD_IRQ_LABEL

#define BOARD_INITGT202SHIELD_IRQ_LABEL "IRQ"

Label

Definition at line 175 of file board.h.

## ◆ BOARD_INITGT202SHIELD_IRQ_NAME

#define BOARD_INITGT202SHIELD_IRQ_NAME "IRQ"

Identifier name

Definition at line 176 of file board.h.

## ◆ BOARD_INITGT202SHIELD_IRQ_PIN_NAME

#define BOARD_INITGT202SHIELD_IRQ_PIN_NAME GPIO1_19

Pin name

Definition at line 174 of file board.h.

## ◆ BOARD_INITGT202SHIELD_IRQ_PORT

#define BOARD_INITGT202SHIELD_IRQ_PORT 1U

PORT device index: 1

Definition at line 172 of file board.h.

## ◆ BOARD_INITGT202SHIELD_PWRON_DIRECTION

#define BOARD_INITGT202SHIELD_PWRON_DIRECTION kGPIO_DigitalOutput

Direction

Definition at line 169 of file board.h.

## ◆ BOARD_INITGT202SHIELD_PWRON_GPIO

#define BOARD_INITGT202SHIELD_PWRON_GPIO GPIO1

The WIFI-QCA shield pin.

GPIO device name: GPIO

Definition at line 163 of file board.h.

## ◆ BOARD_INITGT202SHIELD_PWRON_GPIO_PIN

#define BOARD_INITGT202SHIELD_PWRON_GPIO_PIN 3U

PIO4 pin index: 3

Definition at line 165 of file board.h.

## ◆ BOARD_INITGT202SHIELD_PWRON_LABEL

#define BOARD_INITGT202SHIELD_PWRON_LABEL "PWRON"

Label

Definition at line 167 of file board.h.

## ◆ BOARD_INITGT202SHIELD_PWRON_NAME

#define BOARD_INITGT202SHIELD_PWRON_NAME "PWRON"

Identifier name

Definition at line 168 of file board.h.

## ◆ BOARD_INITGT202SHIELD_PWRON_PIN_NAME

#define BOARD_INITGT202SHIELD_PWRON_PIN_NAME GPIO1_3

Pin name

Definition at line 166 of file board.h.

## ◆ BOARD_INITGT202SHIELD_PWRON_PORT

#define BOARD_INITGT202SHIELD_PWRON_PORT 1U

PORT device index: 1

Definition at line 164 of file board.h.

## ◆ BOARD_INITSILEX2401SHIELD_IRQ_DIRECTION

#define BOARD_INITSILEX2401SHIELD_IRQ_DIRECTION kGPIO_DigitalInput

Direction

Definition at line 193 of file board.h.

## ◆ BOARD_INITSILEX2401SHIELD_IRQ_GPIO

#define BOARD_INITSILEX2401SHIELD_IRQ_GPIO GPIO1

GPIO device name: GPIO

Definition at line 187 of file board.h.

## ◆ BOARD_INITSILEX2401SHIELD_IRQ_GPIO_PIN

#define BOARD_INITSILEX2401SHIELD_IRQ_GPIO_PIN 11U

PIO1 pin index: 11

Definition at line 189 of file board.h.

## ◆ BOARD_INITSILEX2401SHIELD_IRQ_LABEL

#define BOARD_INITSILEX2401SHIELD_IRQ_LABEL "IRQ"

Label

Definition at line 191 of file board.h.

## ◆ BOARD_INITSILEX2401SHIELD_IRQ_NAME

#define BOARD_INITSILEX2401SHIELD_IRQ_NAME "IRQ"

Identifier name

Definition at line 192 of file board.h.

## ◆ BOARD_INITSILEX2401SHIELD_IRQ_PIN_NAME

#define BOARD_INITSILEX2401SHIELD_IRQ_PIN_NAME GPIO1_11

Pin name

Definition at line 190 of file board.h.

## ◆ BOARD_INITSILEX2401SHIELD_IRQ_PORT

#define BOARD_INITSILEX2401SHIELD_IRQ_PORT 1U

PORT device index: 1

Definition at line 188 of file board.h.

## ◆ BOARD_INITSILEX2401SHIELD_PWRON_DIRECTION

#define BOARD_INITSILEX2401SHIELD_PWRON_DIRECTION kGPIO_DigitalOutput

Direction

Definition at line 185 of file board.h.

## ◆ BOARD_INITSILEX2401SHIELD_PWRON_GPIO

#define BOARD_INITSILEX2401SHIELD_PWRON_GPIO GPIO1

GPIO device name: GPIO

Definition at line 179 of file board.h.

## ◆ BOARD_INITSILEX2401SHIELD_PWRON_GPIO_PIN

#define BOARD_INITSILEX2401SHIELD_PWRON_GPIO_PIN 9U

PIO4 pin index: 9

Definition at line 181 of file board.h.

## ◆ BOARD_INITSILEX2401SHIELD_PWRON_LABEL

#define BOARD_INITSILEX2401SHIELD_PWRON_LABEL "PWRON"

Label

Definition at line 183 of file board.h.

## ◆ BOARD_INITSILEX2401SHIELD_PWRON_NAME

#define BOARD_INITSILEX2401SHIELD_PWRON_NAME "PWRON"

Identifier name

Definition at line 184 of file board.h.

## ◆ BOARD_INITSILEX2401SHIELD_PWRON_PIN_NAME

#define BOARD_INITSILEX2401SHIELD_PWRON_PIN_NAME GPIO1_9

Pin name

Definition at line 182 of file board.h.

## ◆ BOARD_INITSILEX2401SHIELD_PWRON_PORT

#define BOARD_INITSILEX2401SHIELD_PWRON_PORT 1U

PORT device index: 1

Definition at line 180 of file board.h.

## ◆ BOARD_MMC_HOST_BASEADDR

#define BOARD_MMC_HOST_BASEADDR BOARD_USDHC2_BASEADDR

Definition at line 148 of file board.h.

## ◆ BOARD_MMC_HOST_CLK_FREQ

#define BOARD_MMC_HOST_CLK_FREQ BOARD_USDHC2_CLK_FREQ

Definition at line 149 of file board.h.

## ◆ BOARD_MMC_HOST_IRQ

#define BOARD_MMC_HOST_IRQ USDHC2_IRQn

Definition at line 150 of file board.h.

## ◆ BOARD_MMC_SUPPORT_8BIT_BUS

#define BOARD_MMC_SUPPORT_8BIT_BUS (1U)

Definition at line 157 of file board.h.

## ◆ BOARD_MMC_VCC_SUPPLY

#define BOARD_MMC_VCC_SUPPLY kMMC_VoltageWindows270to360

Definition at line 152 of file board.h.

## ◆ BOARD_MMC_VCCQ_SUPPLY

#define BOARD_MMC_VCCQ_SUPPLY kMMC_VoltageWindow170to195

Definition at line 151 of file board.h.

## ◆ BOARD_NAME

#define BOARD_NAME "MIMXRT1060-EVK"

The board name.

Definition at line 19 of file board.h.

## ◆ BOARD_SD_HOST_BASEADDR

#define BOARD_SD_HOST_BASEADDR BOARD_USDHC1_BASEADDR

Definition at line 144 of file board.h.

## ◆ BOARD_SD_HOST_CLK_FREQ

#define BOARD_SD_HOST_CLK_FREQ BOARD_USDHC1_CLK_FREQ

Definition at line 145 of file board.h.

## ◆ BOARD_SD_HOST_IRQ

#define BOARD_SD_HOST_IRQ USDHC1_IRQn

Definition at line 146 of file board.h.

## ◆ BOARD_SD_HOST_SUPPORT_HS200_FREQ

#define BOARD_SD_HOST_SUPPORT_HS200_FREQ (180000000U)

Definition at line 160 of file board.h.

## ◆ BOARD_SD_HOST_SUPPORT_SDR104_FREQ

#define BOARD_SD_HOST_SUPPORT_SDR104_FREQ (200000000U)

Definition at line 159 of file board.h.

## ◆ BOARD_SD_POWER_RESET_GPIO

#define BOARD_SD_POWER_RESET_GPIO (GPIO1)

Definition at line 110 of file board.h.

## ◆ BOARD_SD_POWER_RESET_GPIO_PIN

#define BOARD_SD_POWER_RESET_GPIO_PIN (19U)

Definition at line 111 of file board.h.

## ◆ BOARD_UART_IRQ

#define BOARD_UART_IRQ LPUART1_IRQn

Definition at line 28 of file board.h.

## ◆ BOARD_UART_IRQ_HANDLER

#define BOARD_UART_IRQ_HANDLER LPUART1_IRQHandler

Definition at line 29 of file board.h.

## ◆ BOARD_USB_PHY_D_CAL

#define BOARD_USB_PHY_D_CAL (0x0CU)

Definition at line 79 of file board.h.

## ◆ BOARD_USB_PHY_TXCAL45DM

#define BOARD_USB_PHY_TXCAL45DM (0x06U)

Definition at line 81 of file board.h.

## ◆ BOARD_USB_PHY_TXCAL45DP

#define BOARD_USB_PHY_TXCAL45DP (0x06U)

Definition at line 80 of file board.h.

## ◆ BOARD_USDHC1_BASEADDR

#define BOARD_USDHC1_BASEADDR USDHC1

Definition at line 86 of file board.h.

## ◆ BOARD_USDHC1_CLK_FREQ

#define BOARD_USDHC1_CLK_FREQ (CLOCK_GetSysPfdFreq(kCLOCK_Pfd0) / (CLOCK_GetDiv(kCLOCK_Usdhc1Div) + 1U))

Definition at line 141 of file board.h.

## ◆ BOARD_USDHC2_BASEADDR

#define BOARD_USDHC2_BASEADDR USDHC2

Definition at line 87 of file board.h.

## ◆ BOARD_USDHC2_CLK_FREQ

#define BOARD_USDHC2_CLK_FREQ (CLOCK_GetSysPfdFreq(kCLOCK_Pfd0) / (CLOCK_GetDiv(kCLOCK_Usdhc2Div) + 1U))

Definition at line 142 of file board.h.

## ◆ BOARD_USDHC_CARD_INSERT_CD_LEVEL

#define BOARD_USDHC_CARD_INSERT_CD_LEVEL (0U)

Definition at line 113 of file board.h.

## ◆ BOARD_USDHC_CD_CLEAR_INTERRUPT

#define BOARD_USDHC_CD_CLEAR_INTERRUPT | ( |  | flag | ) | (GPIO_PortClearInterruptFlags(BOARD_USDHC_CD_GPIO_BASE, flag))

Definition at line 96 of file board.h.

## ◆ BOARD_USDHC_CD_GPIO_BASE

#define BOARD_USDHC_CD_GPIO_BASE GPIO2

Definition at line 88 of file board.h.

## ◆ BOARD_USDHC_CD_GPIO_INIT

#define BOARD_USDHC_CD_GPIO_INIT | ( |  | ) |

Value:
{ \
gpio_pin_config_t sw_config = { \
kGPIO_DigitalInput, \
0, \
kGPIO_IntRisingOrFallingEdge, \
}; \
GPIO_PinInit(BOARD_USDHC_CD_GPIO_BASE, BOARD_USDHC_CD_GPIO_PIN, &sw_config); \
GPIO_PortEnableInterrupts(BOARD_USDHC_CD_GPIO_BASE, 1U << BOARD_USDHC_CD_GPIO_PIN); \
GPIO_PortClearInterruptFlags(BOARD_USDHC_CD_GPIO_BASE, ~0); \
}

Definition at line 98 of file board.h.

## ◆ BOARD_USDHC_CD_GPIO_PIN

#define BOARD_USDHC_CD_GPIO_PIN 28

Definition at line 89 of file board.h.

## ◆ BOARD_USDHC_CD_INTERRUPT_STATUS

#define BOARD_USDHC_CD_INTERRUPT_STATUS | ( |  | ) | (GPIO_PortGetInterruptFlags(BOARD_USDHC_CD_GPIO_BASE))

Definition at line 95 of file board.h.

## ◆ BOARD_USDHC_CD_PORT_IRQ

#define BOARD_USDHC_CD_PORT_IRQ GPIO2_Combined_16_31_IRQn

Definition at line 90 of file board.h.

## ◆ BOARD_USDHC_CD_PORT_IRQ_HANDLER

#define BOARD_USDHC_CD_PORT_IRQ_HANDLER GPIO2_Combined_16_31_IRQHandler

Definition at line 91 of file board.h.

## ◆ BOARD_USDHC_CD_STATUS

#define BOARD_USDHC_CD_STATUS | ( |  | ) | (GPIO_PinRead(BOARD_USDHC_CD_GPIO_BASE, BOARD_USDHC_CD_GPIO_PIN))

Definition at line 93 of file board.h.

## ◆ BOARD_USDHC_MMCCARD_POWER_CONTROL

#define BOARD_USDHC_MMCCARD_POWER_CONTROL | ( |  | state | ) |

Definition at line 115 of file board.h.

## ◆ BOARD_USDHC_MMCCARD_POWER_CONTROL_INIT

#define BOARD_USDHC_MMCCARD_POWER_CONTROL_INIT | ( |  | ) |

Value:
{ \
gpio_pin_config_t sw_config = { \
kGPIO_DigitalOutput, \
0, \
kGPIO_NoIntmode, \
}; \
GPIO_PinInit(BOARD_SD_POWER_RESET_GPIO, BOARD_SD_POWER_RESET_GPIO_PIN, &sw_config); \
GPIO_PinWrite(BOARD_SD_POWER_RESET_GPIO, BOARD_SD_POWER_RESET_GPIO_PIN, true); \
}

Definition at line 117 of file board.h.

## ◆ BOARD_USDHC_SDCARD_POWER_CONTROL

#define BOARD_USDHC_SDCARD_POWER_CONTROL | ( |  | state | ) | (GPIO_PinWrite(BOARD_SD_POWER_RESET_GPIO, BOARD_SD_POWER_RESET_GPIO_PIN, state))

Definition at line 138 of file board.h.

## ◆ BOARD_USDHC_SDCARD_POWER_CONTROL_INIT

#define BOARD_USDHC_SDCARD_POWER_CONTROL_INIT | ( |  | ) |

Value:
{ \
gpio_pin_config_t sw_config = { \
kGPIO_DigitalOutput, \
0, \
kGPIO_NoIntmode, \
}; \
GPIO_PinInit(BOARD_SD_POWER_RESET_GPIO, BOARD_SD_POWER_RESET_GPIO_PIN, &sw_config); \
}

Definition at line 128 of file board.h.

## ◆ BOARD_USER_BUTTON_GPIO

#define BOARD_USER_BUTTON_GPIO GPIO5

Define the port interrupt number for the board switches.

Definition at line 63 of file board.h.

## ◆ BOARD_USER_BUTTON_GPIO_PIN

#define BOARD_USER_BUTTON_GPIO_PIN (0U)

Definition at line 66 of file board.h.

## ◆ BOARD_USER_BUTTON_IRQ

#define BOARD_USER_BUTTON_IRQ GPIO5_Combined_0_15_IRQn

Definition at line 68 of file board.h.

## ◆ BOARD_USER_BUTTON_IRQ_HANDLER

#define BOARD_USER_BUTTON_IRQ_HANDLER GPIO5_Combined_0_15_IRQHandler

Definition at line 69 of file board.h.

## ◆ BOARD_USER_BUTTON_NAME

#define BOARD_USER_BUTTON_NAME "SW8"

Definition at line 70 of file board.h.

## ◆ BOARD_USER_LED_GPIO

#define BOARD_USER_LED_GPIO GPIO2

Definition at line 40 of file board.h.

## ◆ BOARD_USER_LED_GPIO_PIN

#define BOARD_USER_LED_GPIO_PIN (9U)

Definition at line 43 of file board.h.

## ◆ LOGIC_LED_OFF

#define LOGIC_LED_OFF (1U)

Definition at line 37 of file board.h.

## ◆ LOGIC_LED_ON

#define LOGIC_LED_ON (0U)

The USER_LED used for board.

Definition at line 36 of file board.h.

## ◆ USER_LED_INIT

#define USER_LED_INIT | ( |  | output | ) |

Value:
GPIO_PinWrite(BOARD_USER_LED_GPIO, BOARD_USER_LED_GPIO_PIN, output); \
BOARD_USER_LED_GPIO->GDIR |= (1U << BOARD_USER_LED_GPIO_PIN)

Enable target USER_LED

Definition at line 46 of file board.h.

## ◆ USER_LED_OFF

#define USER_LED_OFF | ( |  | ) | GPIO_PortSet(BOARD_USER_LED_GPIO, 1U << BOARD_USER_LED_GPIO_PIN)

Turn on target USER_LED

Definition at line 54 of file board.h.

## ◆ USER_LED_ON

#define USER_LED_ON | ( |  | ) | GPIO_PortClear(BOARD_USER_LED_GPIO, 1U << BOARD_USER_LED_GPIO_PIN)

Turn off target USER_LED

Definition at line 51 of file board.h.

## ◆ USER_LED_TOGGLE

#define USER_LED_TOGGLE | ( |  | ) |

Value:
GPIO_PinWrite(BOARD_USER_LED_GPIO, BOARD_USER_LED_GPIO_PIN, \
0x1 ^ GPIO_PinRead(BOARD_USER_LED_GPIO, BOARD_USER_LED_GPIO_PIN))

Toggle target USER_LED

Definition at line 55 of file board.h.

## Function Documentation

## ◆ BOARD_ConfigMPU()

void BOARD_ConfigMPU | ( | void |  | ) |

Definition at line 233 of file board.c.

References ARM_MPU_AP_FULL, ARM_MPU_AP_RO, ARM_MPU_Disable(), ARM_MPU_Enable(), ARM_MPU_RASR, ARM_MPU_RBAR, ARM_MPU_REGION_SIZE_128KB, ARM_MPU_REGION_SIZE_1GB, ARM_MPU_REGION_SIZE_256KB, ARM_MPU_REGION_SIZE_32MB, ARM_MPU_REGION_SIZE_512KB, ARM_MPU_REGION_SIZE_512MB, ARM_MPU_REGION_SIZE_8MB, i, SCB, SCB_CCR_DC_Msk, SCB_CCR_IC_Msk, SCB_DisableDCache(), SCB_DisableICache(), SCB_EnableDCache(), and SCB_EnableICache().

## ◆ BOARD_DebugConsoleSrcFreq()

uint32_t BOARD_DebugConsoleSrcFreq | ( | void |  | ) |

Definition at line 22 of file board.c.

Referenced by BOARD_InitDebugConsole().

## ◆ BOARD_InitDebugConsole()

void BOARD_InitDebugConsole | ( | void |  | ) |

Definition at line 41 of file board.c.

References BOARD_DEBUG_UART_BAUDRATE, BOARD_DEBUG_UART_INSTANCE, BOARD_DEBUG_UART_TYPE, and BOARD_DebugConsoleSrcFreq().

## ◆ BOARD_MMC_Pin_Config()

void BOARD_MMC_Pin_Config | ( | uint32_t | speed,
|  | uint32_t | strength
| ) |  |

Definition at line 405 of file board.c.

## ◆ BOARD_SD_Pin_Config()

void BOARD_SD_Pin_Config | ( | uint32_t | speed,
|  | uint32_t | strength
| ) |  |

Definition at line 372 of file board.c.

BOARD_USER_LED_GPIO_PIN
#define BOARD_USER_LED_GPIO_PIN
Definition: board.h:43
BOARD_SD_POWER_RESET_GPIO_PIN
#define BOARD_SD_POWER_RESET_GPIO_PIN
Definition: board.h:111
BOARD_SD_POWER_RESET_GPIO
#define BOARD_SD_POWER_RESET_GPIO
Definition: board.h:110
BOARD_USDHC_CD_GPIO_PIN
#define BOARD_USDHC_CD_GPIO_PIN
Definition: board.h:89
BOARD_USDHC_CD_GPIO_BASE
#define BOARD_USDHC_CD_GPIO_BASE
Definition: board.h:88
BOARD_USER_LED_GPIO
#define BOARD_USER_LED_GPIO
Definition: board.h:40