C
Configure NXP i.MX RT1170 pins
To get Qt Quick Ultralite working on your NXP i.MX RT1170, configure the functional groups and pin configuration. The following subsections provide instructions on how to add and modify the functional groups, and check the pin configuration using the MCUXpresso IDE.
Creating new functional groups
Open the Functional group properties window in the MCUXpresso IDE and create the following two new functional groups:
BOARD_InitMipiPanelPins
BOARD_InitGpioPins
Configuring the functional groups
Use the Functional group properties window in the MCUXpresso IDE to modify the following functional groups:
BOARD_InitPins
Rename the
BOARD_InitPins
functional group asBOARD_InitLpuartPins
. Make sure that the call by the default initialization function is set totrue
.BOARD_InitMipiPanelPins
Make sure that the call by the default initialization function is set to
false
.BOARD_InitGpioPins
Make sure that the call by the default initialization function is set to
false
.
Close the Functional group properties window after you have made the modifications listed above.
Checking the pin configuration
Use the Pins Tool of the MCUXpresso IDE to make sure that the pin configuration is set as specified in the functional group-specific tables below.
Note: If a pin property is not listed or the value is empty, use the default value.
BOARD_InitLpuartPins
Pin | Software Input On | Pull/Keeper select | Drive strength |
---|---|---|---|
M15 | Enabled | Keeper | Normal |
L13 | Keeper | Normal |
BOARD_InitMipiPanelPins
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
Pin | Peripheral | Signal | Direction | GPIO interrupt |
---|---|---|---|---|
M13 | GPIO9 | gpio_io,03 | Output | |
T8 | GPIO13 | gpio_io,00 | Input | Rising Edge |
Changing the pin definition
After configuring the pins, select the Update Code button in the MCUXpresso IDE 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 defined earlier routes the interrupt to GPIO2
, which can be accessed from the CM7
core, but you'll have to manually change the pin definition as follows:
- Open the board/board.h file.
- Find the
#define BOARD_MIPI_PANEL_TOUCH_INT_GPIO GPIO8
line and replaceGPIO8
withGPIO2
.
Available under certain Qt licenses.
Find out more.