Home
last modified time | relevance | path

Searched refs:pinHandle (Results 1 – 5 of 5) sorted by relevance

/hal_nxp-3.6.0/mcux/mcux-sdk/middleware/issdk/drivers/gpio/lpc/
Dgpio_driver.c120 gpioHandleKSDK_t *pinHandle = (gpioHandleKSDK_t *)aPinId; in ksdk_gpio_pin_init() local
131 CLOCK_EnableClock(pinHandle->clockName); in ksdk_gpio_pin_init()
133 …GPIO_PinInit(pinHandle->base, pinHandle->portNumber, pinHandle->pinNumber, &pGpioConfig->pinConfig… in ksdk_gpio_pin_init()
136 if (aIsrHandler && pinHandle->portNumber < GINT_COUNT) in ksdk_gpio_pin_init()
139 GINT_Init(gintBases[pinHandle->portNumber]); in ksdk_gpio_pin_init()
142 isrObj[pinHandle->portNumber][pinHandle->pinNumber].isrHandle = aIsrHandler; in ksdk_gpio_pin_init()
143 isrObj[pinHandle->portNumber][pinHandle->pinNumber].pUserData = apUserData; in ksdk_gpio_pin_init()
146 GINT_SetCtrl(gintBases[pinHandle->portNumber], kGINT_CombineOr, pGpioConfig->interruptMode, in ksdk_gpio_pin_init()
147 gintIsrCb[pinHandle->portNumber]); in ksdk_gpio_pin_init()
150 …GINT_GetConfigPins(gintBases[pinHandle->portNumber], pinHandle->portNumber, &polarityMask, &enable… in ksdk_gpio_pin_init()
[all …]
/hal_nxp-3.6.0/mcux/mcux-sdk/middleware/issdk/drivers/gpio/kinetis/
Dgpio_driver.c58 gpioHandleKSDK_t *pinHandle = (gpioHandleKSDK_t *)aPinId; in ksdk_gpio_pin_init() local
66 CLOCK_EnableClock(pinHandle->clockName); in ksdk_gpio_pin_init()
69 PORT_SetPinConfig(pinHandle->portBase, pinHandle->pinNumber, &pGpioConfig->portPinConfig); in ksdk_gpio_pin_init()
73 GPIO_PinInit(pinHandle->base, pinHandle->pinNumber, &pGpioConfig->pinConfig); in ksdk_gpio_pin_init()
79 EnableIRQ(pinHandle->irq); in ksdk_gpio_pin_init()
80 isrObj[pinHandle->portNumber][pinHandle->pinNumber].isrHandle = aIsrHandler; in ksdk_gpio_pin_init()
81 isrObj[pinHandle->portNumber][pinHandle->pinNumber].pUserData = apUserData; in ksdk_gpio_pin_init()
83 … PORT_SetPinInterruptConfig(pinHandle->portBase, pinHandle->pinNumber, pGpioConfig->interruptMode); in ksdk_gpio_pin_init()
95 gpioHandleKSDK_t *pinHandle = (gpioHandleKSDK_t *)aPinId; in ksdk_gpio_set_pin() local
96 GPIO_PortSet(pinHandle->base, pinHandle->mask); in ksdk_gpio_set_pin()
[all …]
/hal_nxp-3.6.0/mcux/mcux-sdk/middleware/issdk/drivers/gpio/i.mx/
Dgpio_driver.c57 gpioHandleiMXSDK_t *pinHandle = (gpioHandleiMXSDK_t *)aPinId; in imxsdk_gpio_pin_init() local
65 GPIO_PinInit(pinHandle->base, pinHandle->pinNumber, &pGpioConfig->pinConfig); in imxsdk_gpio_pin_init()
71 EnableIRQ(pinHandle->irq); in imxsdk_gpio_pin_init()
72 isrObj[pinHandle->portNumber][pinHandle->pinNumber].isrHandle = aIsrHandler; in imxsdk_gpio_pin_init()
73 isrObj[pinHandle->portNumber][pinHandle->pinNumber].pUserData = apUserData; in imxsdk_gpio_pin_init()
75 GPIO_PortEnableInterrupts(pinHandle->base, pinHandle->mask); in imxsdk_gpio_pin_init()
87 gpioHandleiMXSDK_t *pinHandle = (gpioHandleiMXSDK_t *)aPinId; in imxsdk_gpio_set_pin() local
88 pinHandle->pinStatus = PIN_SET; in imxsdk_gpio_set_pin()
89 GPIO_PinWrite(pinHandle->base, pinHandle->pinNumber, PIN_SET); in imxsdk_gpio_set_pin()
100 gpioHandleiMXSDK_t *pinHandle = (gpioHandleiMXSDK_t *)aPinId; in imxsdk_gpio_clr_pin() local
[all …]
/hal_nxp-3.6.0/mcux/mcux-sdk/middleware/issdk/drivers/gpio/i.mx/i.mxrt1180/
Dgpio_driver.c57 gpioHandleiMXSDK_t *pinHandle = (gpioHandleiMXSDK_t *)aPinId; in imxsdk_gpio_pin_init() local
65 RGPIO_PinInit(pinHandle->base, pinHandle->pinNumber, &pGpioConfig->pinConfig); in imxsdk_gpio_pin_init()
70 …RGPIO_SetPinInterruptConfig(pinHandle->base, pinHandle->pinNumber, kRGPIO_InterruptOutput0, pGpioC… in imxsdk_gpio_pin_init()
72 EnableIRQ(pinHandle->irq); in imxsdk_gpio_pin_init()
73 isrObj[pinHandle->portNumber][pinHandle->pinNumber].isrHandle = aIsrHandler; in imxsdk_gpio_pin_init()
74 isrObj[pinHandle->portNumber][pinHandle->pinNumber].pUserData = apUserData; in imxsdk_gpio_pin_init()
88 gpioHandleiMXSDK_t *pinHandle = (gpioHandleiMXSDK_t *)aPinId; in imxsdk_gpio_set_pin() local
89 pinHandle->pinStatus = PIN_SET; in imxsdk_gpio_set_pin()
90 RGPIO_PinWrite(pinHandle->base, pinHandle->pinNumber, PIN_SET); in imxsdk_gpio_set_pin()
101 gpioHandleiMXSDK_t *pinHandle = (gpioHandleiMXSDK_t *)aPinId; in imxsdk_gpio_clr_pin() local
[all …]
/hal_nxp-3.6.0/mcux/mcux-sdk/middleware/issdk/drivers/gpio/i.mx/i.mxrt600/
Dgpio_driver.c59 gpioHandleiMXSDK_t *pinHandle = (gpioHandleiMXSDK_t *)aPinId; in imxsdk_gpio_pin_init() local
67 …GPIO_PinInit(pinHandle->base, pinHandle->portNumber, pinHandle->pinNumber, &pGpioConfig->pinConfig… in imxsdk_gpio_pin_init()
89 gpioHandleiMXSDK_t *pinHandle = (gpioHandleiMXSDK_t *)aPinId; in imxsdk_gpio_set_pin() local
90 pinHandle->pinStatus = PIN_SET; in imxsdk_gpio_set_pin()
91 GPIO_PinWrite(pinHandle->base, pinHandle->portNumber, pinHandle->pinNumber, PIN_SET); in imxsdk_gpio_set_pin()
102 gpioHandleiMXSDK_t *pinHandle = (gpioHandleiMXSDK_t *)aPinId; in imxsdk_gpio_clr_pin() local
103 pinHandle->pinStatus = PIN_CLR; in imxsdk_gpio_clr_pin()
104 GPIO_PinWrite(pinHandle->base, pinHandle->portNumber, pinHandle->pinNumber, PIN_CLR); in imxsdk_gpio_clr_pin()
115 gpioHandleiMXSDK_t *pinHandle = (gpioHandleiMXSDK_t *)aPinId; in imxsdk_gpio_toggle_pin() local
118 if (PIN_CLR == pinHandle->pinStatus) in imxsdk_gpio_toggle_pin()
[all …]