Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/platform/stm32/inc/plat/
Dexti.h76 uint32_t gpioNum = (uint32_t)gpioHandle - GPIO_HANDLE_OFFSET; in extiEnableIntGpio()
83 uint32_t gpioNum = (uint32_t)gpioHandle - GPIO_HANDLE_OFFSET; in extiDisableIntGpio()
90 uint32_t gpioNum = (uint32_t)gpioHandle - GPIO_HANDLE_OFFSET; in extiIsPendingGpio()
98 uint32_t gpioNum = (uint32_t)gpioHandle - GPIO_HANDLE_OFFSET; in extiClearPendingGpio()
Dgpio.h26 #define GPIO_HANDLE_OFFSET 1 /* to make sure that 0 stays an invalid number */ macro
/device/google/contexthub/firmware/os/platform/stm32/
Dgpio.c63 return (struct Gpio*)(((uintptr_t)number) + GPIO_HANDLE_OFFSET); in gpioRequest()
134 gpioConfigInputWithNum((uint32_t)gpioHandle - GPIO_HANDLE_OFFSET, gpioSpeed, pull); in gpioConfigInput()
155 …gpioConfigOutputWithNum((uint32_t)gpioHandle - GPIO_HANDLE_OFFSET, gpioSpeed, pull, output, value); in gpioConfigOutput()
181 … gpioConfigAltWithNum((uint32_t)gpioHandle - GPIO_HANDLE_OFFSET, gpioSpeed, pull, output, altFunc); in gpioConfigAlt()
200 gpioConfigAnalogWithNum((uint32_t)gpioHandle - GPIO_HANDLE_OFFSET); in gpioConfigAnalog()
216 gpioSetWithNum((uint32_t)gpioHandle - GPIO_HANDLE_OFFSET, value); in gpioSet()
230 return gpioHandle ? gpioGetWithNum((uint32_t)gpioHandle - GPIO_HANDLE_OFFSET) : 0; in gpioGet()
Dsyscfg.c33 uint32_t gpioNum = (uint32_t)gpioHandle - GPIO_HANDLE_OFFSET; in syscfgSetExtiPort()