Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/platform/stm32/inc/plat/
Dgpio.h39 #define GPIO_PORT_SHIFT 4 macro
45 #define GPIO_PA(x) ((GPIO_PORTA << GPIO_PORT_SHIFT) + (x))
46 #define GPIO_PB(x) ((GPIO_PORTB << GPIO_PORT_SHIFT) + (x))
47 #define GPIO_PC(x) ((GPIO_PORTC << GPIO_PORT_SHIFT) + (x))
48 #define GPIO_PD(x) ((GPIO_PORTD << GPIO_PORT_SHIFT) + (x))
49 #define GPIO_PE(x) ((GPIO_PORTE << GPIO_PORT_SHIFT) + (x))
50 #define GPIO_PF(x) ((GPIO_PORTF << GPIO_PORT_SHIFT) + (x))
51 #define GPIO_PG(x) ((GPIO_PORTG << GPIO_PORT_SHIFT) + (x))
52 #define GPIO_PH(x) ((GPIO_PORTH << GPIO_PORT_SHIFT) + (x))
53 #define GPIO_PI(x) ((GPIO_PORTI << GPIO_PORT_SHIFT) + (x))
/device/google/contexthub/firmware/os/platform/stm32/
Dgpio.c98 struct StmGpio *block = (struct StmGpio*)mGpioBases[gpioNum >> GPIO_PORT_SHIFT]; in gpioConfigWithNum()
105 pwrUnitClock(PERIPH_BUS_AHB1, mGpioPeriphs[gpioNum >> GPIO_PORT_SHIFT], true); in gpioConfigWithNum()
121 struct StmGpio *block = (struct StmGpio*)mGpioBases[gpioNum >> GPIO_PORT_SHIFT]; in gpioConfigInputWithNum()
139 struct StmGpio *block = (struct StmGpio*)mGpioBases[gpioNum >> GPIO_PORT_SHIFT]; in gpioConfigOutputWithNum()
160 struct StmGpio *block = (struct StmGpio*)mGpioBases[gpioNum >> GPIO_PORT_SHIFT]; in gpioConfigAltWithNum()
162 const uint32_t regNo = pinNo >> (GPIO_PORT_SHIFT - 1); in gpioConfigAltWithNum()
186 struct StmGpio *block = (struct StmGpio*)mGpioBases[gpioNum >> GPIO_PORT_SHIFT]; in gpioConfigAnalogWithNum()
205 struct StmGpio *block = (struct StmGpio*)mGpioBases[gpioNum >> GPIO_PORT_SHIFT]; in gpioSetWithNum()
221 struct StmGpio *block = (struct StmGpio*)mGpioBases[gpioNum >> GPIO_PORT_SHIFT]; in gpioGetWithNum()
240 struct StmGpio *block = (struct StmGpio*)mGpioBases[DEBUG_UART_PIN >> GPIO_PORT_SHIFT]; in gpioBitbangedUartOut()
Dsyscfg.c35 const uint32_t bankNo = gpioNum >> GPIO_PORT_SHIFT; in syscfgSetExtiPort()