2020-01-30 03:40:34 +00:00
|
|
|
#define MICROPY_HW_BOARD_NAME "i.MX RT1010 EVK"
|
|
|
|
#define MICROPY_HW_MCU_NAME "MIMXRT1011DAE5A"
|
|
|
|
|
|
|
|
#define BOARD_FLASH_SIZE (16 * 1024 * 1024)
|
|
|
|
|
2020-04-12 21:00:06 +01:00
|
|
|
// i.MX RT1010 EVK has 1 board LED
|
2020-08-21 15:03:21 +01:00
|
|
|
#define MICROPY_HW_LED1_PIN (pin_GPIO_11)
|
2020-04-12 21:00:06 +01:00
|
|
|
#define MICROPY_HW_LED_ON(pin) (mp_hal_pin_high(pin))
|
|
|
|
#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_low(pin))
|
2021-05-07 14:21:09 +01:00
|
|
|
#define BOARD_FLASH_CONFIG_HEADER_H "evkmimxrt1010_flexspi_nor_config.h"
|
2021-05-30 17:18:33 +01:00
|
|
|
|
|
|
|
// Define mapping logical UART # to hardware UART #
|
|
|
|
// LPUART1 on D0/D1 -> 1
|
|
|
|
// LPUART3 on A0/D4 -> 3
|
|
|
|
// LPUART4 on D6/D7 -> 2
|
|
|
|
|
|
|
|
#define MICROPY_HW_UART_NUM (sizeof(uart_index_table) / sizeof(uart_index_table)[0])
|
|
|
|
#define MICROPY_HW_UART_INDEX { 0, 1, 4, 3 }
|
|
|
|
|
|
|
|
#define IOMUX_TABLE_UART \
|
|
|
|
{ IOMUXC_GPIO_10_LPUART1_TXD }, { IOMUXC_GPIO_09_LPUART1_RXD }, \
|
|
|
|
{ 0 }, { 0 }, \
|
|
|
|
{ IOMUXC_GPIO_08_LPUART3_TXD }, { IOMUXC_GPIO_AD_07_LPUART3_RXD }, \
|
|
|
|
{ IOMUXC_GPIO_AD_02_LPUART4_TXD }, { IOMUXC_GPIO_AD_01_LPUART4_RXD },
|