20 #define BOARD_NAME "IMXRT1050-EVKB"
23 #define BOARD_DEBUG_UART_TYPE kSerialPort_Uart
24 #define BOARD_DEBUG_UART_BASEADDR (uint32_t) LPUART1
25 #define BOARD_DEBUG_UART_INSTANCE 1U
27 #define BOARD_DEBUG_UART_CLK_FREQ BOARD_DebugConsoleSrcFreq()
29 #define BOARD_UART_IRQ LPUART1_IRQn
30 #define BOARD_UART_IRQ_HANDLER LPUART1_IRQHandler
32 #ifndef BOARD_DEBUG_UART_BAUDRATE
33 #define BOARD_DEBUG_UART_BAUDRATE (115200U)
37 #define LOGIC_LED_ON (0U)
38 #define LOGIC_LED_OFF (1U)
39 #ifndef BOARD_USER_LED_GPIO
40 #define BOARD_USER_LED_GPIO GPIO1
42 #ifndef BOARD_USER_LED_GPIO_PIN
43 #define BOARD_USER_LED_GPIO_PIN (9U)
46 #define USER_LED_INIT(output) \
47 GPIO_PinWrite(BOARD_USER_LED_GPIO, BOARD_USER_LED_GPIO_PIN, output); \
48 BOARD_USER_LED_GPIO->GDIR |= (1U << BOARD_USER_LED_GPIO_PIN)
49 #define USER_LED_ON() \
50 GPIO_PortClear(BOARD_USER_LED_GPIO, 1U << BOARD_USER_LED_GPIO_PIN)
51 #define USER_LED_OFF() GPIO_PortSet(BOARD_USER_LED_GPIO, 1U << BOARD_USER_LED_GPIO_PIN)
52 #define USER_LED_TOGGLE() \
53 GPIO_PinWrite(BOARD_USER_LED_GPIO, BOARD_USER_LED_GPIO_PIN, \
54 0x1 ^ GPIO_PinRead(BOARD_USER_LED_GPIO, BOARD_USER_LED_GPIO_PIN))
57 #ifndef BOARD_USER_BUTTON_GPIO
58 #define BOARD_USER_BUTTON_GPIO GPIO5
60 #ifndef BOARD_USER_BUTTON_GPIO_PIN
61 #define BOARD_USER_BUTTON_GPIO_PIN (0U)
63 #define BOARD_USER_BUTTON_IRQ GPIO5_Combined_0_15_IRQn
64 #define BOARD_USER_BUTTON_IRQ_HANDLER GPIO5_Combined_0_15_IRQHandler
65 #define BOARD_USER_BUTTON_NAME "SW8"
68 #define BOARD_FLASH_SIZE (0x4000000U)
71 #define BOARD_ENET0_PHY_ADDRESS (0x02U)
74 #define BOARD_USB_PHY_D_CAL (0x0CU)
75 #define BOARD_USB_PHY_TXCAL45DP (0x06U)
76 #define BOARD_USB_PHY_TXCAL45DM (0x06U)
78 #define BOARD_ARDUINO_INT_IRQ (GPIO1_INT3_IRQn)
79 #define BOARD_ARDUINO_I2C_IRQ (LPI2C1_IRQn)
80 #define BOARD_ARDUINO_I2C_INDEX (1)
82 #define BOARD_HAS_SDCARD (1U)
85 #define BOARD_INITGT202SHIELD_PWRON_GPIO GPIO1
86 #define BOARD_INITGT202SHIELD_PWRON_PORT 1U
87 #define BOARD_INITGT202SHIELD_PWRON_GPIO_PIN 3U
88 #define BOARD_INITGT202SHIELD_PWRON_PIN_NAME GPIO1_3
89 #define BOARD_INITGT202SHIELD_PWRON_LABEL "PWRON"
90 #define BOARD_INITGT202SHIELD_PWRON_NAME "PWRON"
91 #define BOARD_INITGT202SHIELD_PWRON_DIRECTION kGPIO_DigitalOutput
93 #define BOARD_INITGT202SHIELD_IRQ_GPIO GPIO1
94 #define BOARD_INITGT202SHIELD_IRQ_PORT 1U
95 #define BOARD_INITGT202SHIELD_IRQ_GPIO_PIN 19U
96 #define BOARD_INITGT202SHIELD_IRQ_PIN_NAME GPIO1_19
97 #define BOARD_INITGT202SHIELD_IRQ_LABEL "IRQ"
98 #define BOARD_INITGT202SHIELD_IRQ_NAME "IRQ"
99 #define BOARD_INITGT202SHIELD_IRQ_DIRECTION kGPIO_DigitalInput
102 #define BOARD_INITSILEX2401SHIELD_PWRON_GPIO GPIO1
103 #define BOARD_INITSILEX2401SHIELD_PWRON_PORT 1U
104 #define BOARD_INITSILEX2401SHIELD_PWRON_GPIO_PIN 9U
105 #define BOARD_INITSILEX2401SHIELD_PWRON_PIN_NAME GPIO1_9
106 #define BOARD_INITSILEX2401SHIELD_PWRON_LABEL "PWRON"
107 #define BOARD_INITSILEX2401SHIELD_PWRON_NAME "PWRON"
108 #define BOARD_INITSILEX2401SHIELD_PWRON_DIRECTION kGPIO_DigitalOutput
110 #define BOARD_INITSILEX2401SHIELD_IRQ_GPIO GPIO1
111 #define BOARD_INITSILEX2401SHIELD_IRQ_PORT 1U
112 #define BOARD_INITSILEX2401SHIELD_IRQ_GPIO_PIN 11U
113 #define BOARD_INITSILEX2401SHIELD_IRQ_PIN_NAME GPIO1_11
114 #define BOARD_INITSILEX2401SHIELD_IRQ_LABEL "IRQ"
115 #define BOARD_INITSILEX2401SHIELD_IRQ_NAME "IRQ"
116 #define BOARD_INITSILEX2401SHIELD_IRQ_DIRECTION kGPIO_DigitalInput
119 #define BOARD_ACCEL_I2C_BASEADDR LPI2C1
121 #define BOARD_ACCEL_I2C_CLOCK_SOURCE_SELECT (0U)
123 #define BOARD_ACCEL_I2C_CLOCK_SOURCE_DIVIDER (5U)
124 #define BOARD_ACCEL_I2C_CLOCK_FREQ (CLOCK_GetFreq(kCLOCK_Usb1PllClk) / 8 / (BOARD_ACCEL_I2C_CLOCK_SOURCE_DIVIDER + 1U))
126 #define BOARD_CODEC_I2C_BASEADDR LPI2C1
127 #define BOARD_CODEC_I2C_INSTANCE 1U
128 #define BOARD_CODEC_I2C_CLOCK_SOURCE_SELECT (0U)
129 #define BOARD_CODEC_I2C_CLOCK_SOURCE_DIVIDER (5U)
130 #define BOARD_CODEC_I2C_CLOCK_FREQ (10000000U)
133 #define BOARD_CAMERA_I2C_BASEADDR LPI2C1
134 #define BOARD_CAMERA_I2C_CLOCK_SOURCE_DIVIDER (5U)
135 #define BOARD_CAMERA_I2C_CLOCK_SOURCE_SELECT (0U)
136 #define BOARD_CAMERA_I2C_CLOCK_FREQ \
137 (CLOCK_GetFreq(kCLOCK_Usb1PllClk) / 8 / (BOARD_CAMERA_I2C_CLOCK_SOURCE_DIVIDER + 1U))
139 #define BOARD_CAMERA_I2C_SCL_GPIO GPIO1
140 #define BOARD_CAMERA_I2C_SCL_PIN 16
141 #define BOARD_CAMERA_I2C_SDA_GPIO GPIO1
142 #define BOARD_CAMERA_I2C_SDA_PIN 17
143 #define BOARD_CAMERA_PWDN_GPIO GPIO1
144 #define BOARD_CAMERA_PWDN_PIN 4
147 #define BOARD_BT_UART_BASEADDR LPUART3
148 #define BOARD_BT_UART_CLK_FREQ BOARD_DebugConsoleSrcFreq()
149 #define BOARD_BT_UART_IRQ LPUART3_IRQn
150 #define BOARD_BT_UART_IRQ_HANDLER LPUART3_IRQHandler
152 #if defined(__cplusplus)
164 #if defined(SDK_I2C_BASED_COMPONENT_USED) && SDK_I2C_BASED_COMPONENT_USED
165 void BOARD_LPI2C_Init(
LPI2C_Type *base, uint32_t clkSrc_Hz);
167 uint8_t deviceAddress,
169 uint8_t subaddressSize,
173 uint8_t deviceAddress,
175 uint8_t subaddressSize,
179 uint8_t deviceAddress,
181 uint8_t subaddressSize,
185 uint8_t deviceAddress,
187 uint8_t subaddressSize,
190 void BOARD_Accel_I2C_Init(
void);
191 status_t BOARD_Accel_I2C_Send(uint8_t deviceAddress, uint32_t subAddress, uint8_t subaddressSize, uint32_t txBuff);
193 uint8_t deviceAddress, uint32_t subAddress, uint8_t subaddressSize, uint8_t *rxBuff, uint8_t rxBuffSize);
194 void BOARD_Codec_I2C_Init(
void);
196 uint8_t deviceAddress, uint32_t subAddress, uint8_t subAddressSize,
const uint8_t *txBuff, uint8_t txBuffSize);
198 uint8_t deviceAddress, uint32_t subAddress, uint8_t subAddressSize, uint8_t *rxBuff, uint8_t rxBuffSize);
199 void BOARD_Camera_I2C_Init(
void);
201 uint8_t deviceAddress, uint32_t subAddress, uint8_t subAddressSize,
const uint8_t *txBuff, uint8_t txBuffSize);
203 uint8_t deviceAddress, uint32_t subAddress, uint8_t subAddressSize, uint8_t *rxBuff, uint8_t rxBuffSize);
206 uint8_t deviceAddress, uint32_t subAddress, uint8_t subAddressSize,
const uint8_t *txBuff, uint8_t txBuffSize);
207 status_t BOARD_Camera_I2C_ReceiveSCCB(
208 uint8_t deviceAddress, uint32_t subAddress, uint8_t subAddressSize, uint8_t *rxBuff, uint8_t rxBuffSize);
211 #if defined(__cplusplus)