C
Configure NXP i.MX RT1170 pins
To get Qt Quick Ultralite working, 1170's pins need some configuration. Use the pin configuration tool to add/modify following functional groups with the following pin configurations:
Note: If a pin property is not listed or the value is empty, use the default value.
BOARD_InitPins -> BOARD_InitLpuartPins
Called by default initialization function: true
| Pin | Software Input On | Pull/Keeper select | Drive strength |
|---|---|---|---|
| M15 | Enabled | Keeper | Normal |
| L13 | Keeper | Normal |
BOARD_InitMipiPanelPins
Called by default initialization function: true
| Pin | Peripheral | Signal | Software Input On | Pull up/down config | Pull/Keeper select | Open drain | Drive strength |
|---|---|---|---|---|---|---|---|
| K17 | GPIO9 | gpio_io,29 | |||||
| R13 | GPIO9 | gpio_io,01 | |||||
| R14 | GPIO9 | gpio_io,00 | Pull Down | Keeper | Normal | ||
| A4 | GPIO11 | gpio_io,16 | |||||
| N7 | LPI2C5 | SDA | Enabled | Pull Down | Enabled | Normal | |
| N8 | LPI2C5 | SCL | Enabled | Enabled | Normal | ||
| N12 | GPIO2 | gpio_mux_io,31 | Pull Down |
BOARD_InitGpioPins
Called by default initialization function: true
| Pin | Peripheral | Signal | Direction | GPIO interrupt |
|---|---|---|---|---|
| M13 | GPIO9 | gpio_io,03 | Output | |
| T8 | GPIO13 | gpio_io,00 | Input | Rising Edge |
After all pins have been configured, select the Update Code button to generate the pin configuration code.
By default, the touch interrupt is set to happen on GPIO8 pin, which enables interrupt handling on CM4 core but not on CM7. The pin configuration above routes the interrupt to GPIO2, which can be accessed from CM7 core, but you'll have to manually change the pin definition. You can do this as follows:
- Open board/board.h file.
- Find the
#define BOARD_MIPI_PANEL_TOUCH_INT_GPIO GPIO8line and replaceGPIO8withGPIO2.
Available under certain Qt licenses.
Find out more.