Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/src/drivers/hall_twopole/
Dhall_twopole.c55 #define MAKE_TYPE(sPin,nPin) (sPin ? HALL_REPORT_OPENED_VALUE : HALL_REPORT_CLOSED_VALUE) + \ argument
56 ((nPin ? HALL_REPORT_OPENED_VALUE : HALL_REPORT_CLOSED_VALUE) << 1)
61 struct Gpio *nPin; member
87 int32_t currPinState = MAKE_TYPE(gpioGet(mTask.sPin), gpioGet(mTask.nPin)); in debounceTimerCallback()
96 int32_t currPinState = MAKE_TYPE(gpioGet(data->sPin), gpioGet(data->nPin)); in startDebounceTimer()
117 extiClearPendingGpio(data->nPin); in hallNorthIsr()
157 extiClearPendingGpio(mTask.nPin); in hallPower()
159 enableInterrupt(mTask.nPin, &mTask.nIsr, HALL_N_IRQ); in hallPower()
162 disableInterrupt(mTask.nPin, &mTask.nIsr, HALL_N_IRQ); in hallPower()
164 extiClearPendingGpio(mTask.nPin); in hallPower()
[all …]