Lines Matching refs:pin
52 struct Gpio *pin; member
68 bool pinState = gpioGet(mTask.pin); in debounceTimerCallback()
86 bool pinState = gpioGet(data->pin); in hallIsr()
88 if (!extiIsPendingGpio(data->pin)) { in hallIsr()
100 extiClearPendingGpio(data->pin); in hallIsr()
104 static bool enableInterrupt(struct Gpio *pin, struct ChainedIsr *isr) in enableInterrupt() argument
106 gpioConfigInput(pin, GPIO_SPEED_LOW, GPIO_PULL_NONE); in enableInterrupt()
107 syscfgSetExtiPort(pin); in enableInterrupt()
108 extiEnableIntGpio(pin, EXTI_TRIGGER_BOTH); in enableInterrupt()
113 static bool disableInterrupt(struct Gpio *pin, struct ChainedIsr *isr) in disableInterrupt() argument
116 extiDisableIntGpio(pin); in disableInterrupt()
139 extiClearPendingGpio(mTask.pin); in hallPower()
140 enableInterrupt(mTask.pin, &mTask.isr); in hallPower()
142 disableInterrupt(mTask.pin, &mTask.isr); in hallPower()
143 extiClearPendingGpio(mTask.pin); in hallPower()
167 bool pinState = gpioGet(mTask.pin); in hallSetRate()
212 mTask.pin = gpioRequest(HALL_PIN); in startTask()
220 disableInterrupt(mTask.pin, &mTask.isr); in endTask()
222 extiClearPendingGpio(mTask.pin); in endTask()
223 gpioRelease(mTask.pin); in endTask()