Lines Matching refs:pin
72 struct Gpio *pin; member
113 if (!extiIsPendingGpio(data->pin)) { in vsyncIsr()
125 extiClearPendingGpio(data->pin); in vsyncIsr()
129 static bool enableInterrupt(struct Gpio *pin, struct ChainedIsr *isr) in enableInterrupt() argument
131 gpioConfigInput(pin, GPIO_SPEED_LOW, GPIO_PULL_NONE); in enableInterrupt()
132 syscfgSetExtiPort(pin); in enableInterrupt()
133 extiEnableIntGpio(pin, EXTI_TRIGGER_FALLING); in enableInterrupt()
138 static bool disableInterrupt(struct Gpio *pin, struct ChainedIsr *isr) in disableInterrupt() argument
141 extiDisableIntGpio(pin); in disableInterrupt()
159 extiClearPendingGpio(mTask.pin); in vsyncPower()
160 enableInterrupt(mTask.pin, &mTask.isr); in vsyncPower()
162 disableInterrupt(mTask.pin, &mTask.isr); in vsyncPower()
163 extiClearPendingGpio(mTask.pin); in vsyncPower()
204 mTask.pin = gpioRequest(VSYNC_PIN); in startTask()
219 disableInterrupt(mTask.pin, &mTask.isr); in endTask()
221 extiClearPendingGpio(mTask.pin); in endTask()
222 gpioRelease(mTask.pin); in endTask()