Searched refs:GPIO_HANDLE_OFFSET (Results 1 – 4 of 4) sorted by relevance
/device/google/contexthub/firmware/os/platform/stm32/inc/plat/ |
D | exti.h | 76 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()
|
D | gpio.h | 26 #define GPIO_HANDLE_OFFSET 1 /* to make sure that 0 stays an invalid number */ macro
|
/device/google/contexthub/firmware/os/platform/stm32/ |
D | gpio.c | 63 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()
|
D | syscfg.c | 33 uint32_t gpioNum = (uint32_t)gpioHandle - GPIO_HANDLE_OFFSET; in syscfgSetExtiPort()
|