Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/src/platform/stm32f4xx/
Dgpio.c58 static void gpioSetWithNum(uint32_t gpioNum, bool value);
96 static void gpioConfigWithNum(uint32_t gpioNum, int32_t gpioSpeed, enum GpioPullMode pull, enum Gpi… in gpioConfigWithNum() argument
98 struct StmGpio *block = (struct StmGpio*)mGpioBases[gpioNum >> GPIO_PORT_SHIFT]; in gpioConfigWithNum()
99 const uint32_t shift_1b = gpioNum & GPIO_PIN_MASK; in gpioConfigWithNum()
100 const uint32_t shift_2b = (gpioNum & GPIO_PIN_MASK) * 2; in gpioConfigWithNum()
105 pwrUnitClock(PERIPH_BUS_AHB1, mGpioPeriphs[gpioNum >> GPIO_PORT_SHIFT], true); in gpioConfigWithNum()
119 static void gpioConfigInputWithNum(uint32_t gpioNum, int32_t gpioSpeed, enum GpioPullMode pull) in gpioConfigInputWithNum() argument
121 struct StmGpio *block = (struct StmGpio*)mGpioBases[gpioNum >> GPIO_PORT_SHIFT]; in gpioConfigInputWithNum()
122 const uint32_t shift_2b = (gpioNum & GPIO_PIN_MASK) * 2; in gpioConfigInputWithNum()
125 gpioConfigWithNum(gpioNum, gpioSpeed, pull, GPIO_OUT_PUSH_PULL); in gpioConfigInputWithNum()
[all …]
Dsyscfg.c33 uint32_t gpioNum = (uint32_t)gpioHandle - GPIO_HANDLE_OFFSET; in syscfgSetExtiPort() local
35 const uint32_t bankNo = gpioNum >> GPIO_PORT_SHIFT; in syscfgSetExtiPort()
36 const uint32_t pinNo = gpioNum & GPIO_PIN_MASK; in syscfgSetExtiPort()
Dspi.c118 static inline struct Gpio *stmSpiGpioInit(uint32_t gpioNum, enum StmGpioSpeed speed, enum StmGpioAl… in stmSpiGpioInit() argument
120 struct Gpio *gpio = gpioRequest(gpioNum); in stmSpiGpioInit()
Di2c.c763 struct Gpio* gpio = gpioRequest(cfg->gpioNum); in stmI2cGpioInit()
/device/google/contexthub/firmware/inc/platform/stm32f4xx/
Di2c.h32 uint8_t gpioNum; member
51 #define I2C1_GPIO_SCL_PB6 { .gpioNum = GPIO_PB(6), .func = GPIO_AF_I2C1 }
52 #define I2C1_GPIO_SCL_PB8 { .gpioNum = GPIO_PB(8), .func = GPIO_AF_I2C1 }
53 #define I2C1_GPIO_SDA_PB7 { .gpioNum = GPIO_PB(7), .func = GPIO_AF_I2C1 }
54 #define I2C1_GPIO_SDA_PB9 { .gpioNum = GPIO_PB(9), .func = GPIO_AF_I2C1 }
61 #define I2C2_GPIO_SCL_PB10 { .gpioNum = GPIO_PB(10), .func = GPIO_AF_I2C2_A }
62 #define I2C2_GPIO_SDA_PB3 { .gpioNum = GPIO_PB(3), .func = GPIO_AF_I2C2_B }
63 #define I2C2_GPIO_SDA_PB9 { .gpioNum = GPIO_PB(9), .func = GPIO_AF_I2C2_B }
64 #define I2C2_GPIO_SDA_PB11 { .gpioNum = GPIO_PB(11), .func = GPIO_AF_I2C2_A }
69 #define I2C3_GPIO_SCL_PA8 { .gpioNum = GPIO_PA(8), .func = GPIO_AF_I2C3_A }
[all …]
Dexti.h74 uint32_t gpioNum = (uint32_t)gpioHandle - GPIO_HANDLE_OFFSET; in extiEnableIntGpio() local
75 extiEnableIntLine(gpioNum & GPIO_PIN_MASK, trigger); in extiEnableIntGpio()
81 uint32_t gpioNum = (uint32_t)gpioHandle - GPIO_HANDLE_OFFSET; in extiDisableIntGpio() local
82 extiDisableIntLine(gpioNum & GPIO_PIN_MASK); in extiDisableIntGpio()
88 uint32_t gpioNum = (uint32_t)gpioHandle - GPIO_HANDLE_OFFSET; in extiIsPendingGpio() local
89 return extiIsPendingLine(gpioNum & GPIO_PIN_MASK); in extiIsPendingGpio()
96 uint32_t gpioNum = (uint32_t)gpioHandle - GPIO_HANDLE_OFFSET; in extiClearPendingGpio() local
97 extiClearPendingLine(gpioNum & GPIO_PIN_MASK); in extiClearPendingGpio()
/device/google/contexthub/firmware/inc/
Dgpio.h67 struct Gpio* gpioRequest(uint32_t gpioNum);
DsyscallDo.h261 static inline struct Gpio* eOsGpioRequest(uint32_t gpioNum) in eOsGpioRequest() argument
263 …_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_REQ), gpioNum); in eOsGpioRequest()
/device/google/contexthub/firmware/src/
DosApi.c298 uint32_t gpioNum = va_arg(args, uint32_t); in osExpApiGpioReq() local
300 *retValP = (uintptr_t)gpioRequest(gpioNum); in osExpApiGpioReq()