[bsp/imxrt/imxrt/imxrt1060-nxp-evk] (#6195)
Fix BSP bugs: -Added Touch INT GPIO Init code to pin_mux.c -Added new delay code for touch/video driver, using the rt-thread delay, in touchpad.c/.h
This commit is contained in:
parent
747ed9b516
commit
226b3e1979
|
@ -104,6 +104,9 @@ void BOARD_InitPins(void) {
|
||||||
IOMUXC_SetPinMux(
|
IOMUXC_SetPinMux(
|
||||||
IOMUXC_GPIO_AD_B0_02_GPIO1_IO02, /* GPIO_AD_B0_02 is configured as GPIO1_IO02 */
|
IOMUXC_GPIO_AD_B0_02_GPIO1_IO02, /* GPIO_AD_B0_02 is configured as GPIO1_IO02 */
|
||||||
0U); /* Software Input On Field: Input Path is determined by functionality */
|
0U); /* Software Input On Field: Input Path is determined by functionality */
|
||||||
|
IOMUXC_SetPinMux(
|
||||||
|
IOMUXC_GPIO_AD_B0_11_GPIO1_IO11, /* GPIO_AD_B0_02 is configured as GPIO1_IO02 */
|
||||||
|
0U); /* Software Input On Field: Input Path is determined by functionality */
|
||||||
IOMUXC_SetPinMux(
|
IOMUXC_SetPinMux(
|
||||||
IOMUXC_GPIO_AD_B0_12_LPUART1_TX, /* GPIO_AD_B0_12 is configured as LPUART1_TX */
|
IOMUXC_GPIO_AD_B0_12_LPUART1_TX, /* GPIO_AD_B0_12 is configured as LPUART1_TX */
|
||||||
0U); /* Software Input On Field: Input Path is determined by functionality */
|
0U); /* Software Input On Field: Input Path is determined by functionality */
|
||||||
|
@ -183,6 +186,16 @@ void BOARD_InitPins(void) {
|
||||||
Pull / Keep Select Field: Keeper
|
Pull / Keep Select Field: Keeper
|
||||||
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
||||||
Hyst. Enable Field: Hysteresis Disabled */
|
Hyst. Enable Field: Hysteresis Disabled */
|
||||||
|
IOMUXC_SetPinConfig(
|
||||||
|
IOMUXC_GPIO_AD_B0_11_GPIO1_IO11, /* GPIO_AD_B0_11 PAD functional properties : */
|
||||||
|
0x10B0u); /* Slew Rate Field: Slow Slew Rate
|
||||||
|
Drive Strength Field: R0/6
|
||||||
|
Speed Field: medium(100MHz)
|
||||||
|
Open Drain Enable Field: Open Drain Disabled
|
||||||
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
||||||
|
Pull / Keep Select Field: Keeper
|
||||||
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
||||||
|
Hyst. Enable Field: Hysteresis Disabled */
|
||||||
IOMUXC_SetPinConfig(
|
IOMUXC_SetPinConfig(
|
||||||
IOMUXC_GPIO_AD_B0_12_LPUART1_TX, /* GPIO_AD_B0_12 PAD functional properties : */
|
IOMUXC_GPIO_AD_B0_12_LPUART1_TX, /* GPIO_AD_B0_12 PAD functional properties : */
|
||||||
0x10B0u); /* Slew Rate Field: Slow Slew Rate
|
0x10B0u); /* Slew Rate Field: Slow Slew Rate
|
||||||
|
|
|
@ -6,6 +6,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "touchpad.h"
|
#include "touchpad.h"
|
||||||
|
#include <rtdevice.h>
|
||||||
|
|
||||||
|
void BOARD_Delay(uint32_t ms)
|
||||||
|
{
|
||||||
|
//VIDEO_DelayMs(ms);
|
||||||
|
rt_thread_mdelay(ms);
|
||||||
|
}
|
||||||
|
|
||||||
void BOARD_LPI2C_Init(LPI2C_Type *base, uint32_t clkSrc_Hz)
|
void BOARD_LPI2C_Init(LPI2C_Type *base, uint32_t clkSrc_Hz)
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,6 +24,7 @@ extern "C" {
|
||||||
#define BOARD_TOUCH_INT_GPIO GPIO1
|
#define BOARD_TOUCH_INT_GPIO GPIO1
|
||||||
#define BOARD_TOUCH_INT_PIN 11
|
#define BOARD_TOUCH_INT_PIN 11
|
||||||
|
|
||||||
|
void BOARD_Delay(uint32_t ms);
|
||||||
void BOARD_LPI2C_Init(LPI2C_Type *base, uint32_t clkSrc_Hz);
|
void BOARD_LPI2C_Init(LPI2C_Type *base, uint32_t clkSrc_Hz);
|
||||||
status_t BOARD_LPI2C_Send(LPI2C_Type *base,
|
status_t BOARD_LPI2C_Send(LPI2C_Type *base,
|
||||||
uint8_t deviceAddress,
|
uint8_t deviceAddress,
|
||||||
|
|
Loading…
Reference in New Issue