/device/google/contexthub/firmware/inc/ |
D | gpio.h | 68 void gpioRelease(struct Gpio* __restrict gpio); 71 void gpioConfigInput(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum GpioPullMode pull); 72 void gpioConfigOutput(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum GpioPullMode pull… 73 void gpioConfigAlt(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum GpioPullMode pull, e… 74 void gpioConfigAnalog(const struct Gpio* __restrict gpio); 77 void gpioSet(const struct Gpio* __restrict gpio, bool value); 78 bool gpioGet(const struct Gpio* __restrict gpio);
|
D | syscallDo.h | 266 static inline void eOsGpioRelease(struct Gpio* __restrict gpio) in eOsGpioRelease() argument 268 …ALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_REL), gpio); in eOsGpioRelease() 271 static inline void eOsGpioConfigInput(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum G… in eOsGpioConfigInput() argument 273 …N_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_CFG_IN), gpio, gpioSpeed, pull); in eOsGpioConfigInput() 276 static inline void eOsGpioConfigOutput(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum … in eOsGpioConfigOutput() argument 278 …S, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_CFG_OUT), gpio, gpioSpeed, pull, o… in eOsGpioConfigOutput() 281 static inline void eOsGpioConfigAlt(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum Gpi… in eOsGpioConfigAlt() argument 283 …S, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_CFG_ALT), gpio, gpioSpeed, pull, o… in eOsGpioConfigAlt() 286 static inline bool eOsGpioGet(const struct Gpio* __restrict gpio) in eOsGpioGet() argument 288 …ALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_GET), gpio); in eOsGpioGet() [all …]
|
/device/google/contexthub/util/stm32_flash/ |
D | flash.c | 82 int gpio; in main() local 149 gpio = open(gpio_dev, O_WRONLY); in main() 150 if (gpio < 0) { in main() 153 if (write_byte(gpio, '1') < 0) in main() 155 close(gpio); in main() 304 gpio = open(gpio_dev, O_WRONLY); in main() 305 if (gpio < 0) { in main() 308 if (write_byte(gpio, '0') < 0) in main() 310 close(gpio); in main()
|
/device/google/dragon/sepolicy/ |
D | init.te | 2 # set attributes on /sys/class/gpio sym link 3 # chmod 0770 /sys/class/gpio/gpio66
|
/device/google/contexthub/firmware/src/ |
D | osApi.c | 305 struct Gpio* gpio = va_arg(args, struct Gpio*); in osExpApiGpioRel() local 307 gpioRelease(gpio); in osExpApiGpioRel() 312 struct Gpio* gpio = va_arg(args, struct Gpio*); in osExpApiGpioCfgIn() local 316 gpioConfigInput(gpio, speed, pullMode); in osExpApiGpioCfgIn() 321 struct Gpio* gpio = va_arg(args, struct Gpio*); in osExpApiGpioCfgOut() local 327 gpioConfigOutput(gpio, speed, pullMode, odrMode, value); in osExpApiGpioCfgOut() 332 struct Gpio* gpio = va_arg(args, struct Gpio*); in osExpApiGpioCfgAlt() local 338 gpioConfigAlt(gpio, speed, pullMode, odrMode, altFunc); in osExpApiGpioCfgAlt() 343 struct Gpio* gpio = va_arg(args, struct Gpio*); in osExpApiGpioGet() local 345 *retValP = gpioGet(gpio); in osExpApiGpioGet() [all …]
|
/device/google/contexthub/firmware/src/platform/stm32f4xx/ |
D | gpio.c | 66 void gpioRelease(struct Gpio* __restrict gpio) in gpioRelease() argument 68 (void)gpio; in gpioRelease() 247 struct Gpio *gpio = gpioRequest(DEBUG_UART_PIN); in gpioBitbangedUartOut() local 249 if (!gpio) in gpioBitbangedUartOut() 253 gpioConfigOutput(gpio, GPIO_SPEED_HIGH, GPIO_PULL_NONE, GPIO_OUT_PUSH_PULL, true); in gpioBitbangedUartOut()
|
D | spi.c | 120 struct Gpio *gpio = gpioRequest(gpioNum); in stmSpiGpioInit() local 122 if (gpio) in stmSpiGpioInit() 123 gpioConfigAlt(gpio, speed, GPIO_PULL_NONE, GPIO_OUT_PUSH_PULL, func); in stmSpiGpioInit() 125 return gpio; in stmSpiGpioInit()
|
D | i2c.c | 763 struct Gpio* gpio = gpioRequest(cfg->gpioNum); in stmI2cGpioInit() local 764 gpioConfigAlt(gpio, board->gpioSpeed, board->gpioPull, GPIO_OUT_OPEN_DRAIN, in stmI2cGpioInit() 767 return gpio; in stmI2cGpioInit()
|
/device/asus/fugu/ |
D | device.mk | 239 device/asus/fugu/gpio-keys.idc:system/usr/idc/gpio-keys.idc \ 240 device/asus/fugu/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \ 241 device/asus/fugu/gpio-keys.kcm:system/usr/keychars/gpio-keys.kcm \
|
/device/google/contexthub/firmware/inc/platform/stm32f4xx/ |
D | syscfg.h | 27 void syscfgSetExtiPort(const struct Gpio *__restrict gpio);
|
/device/google/contexthub/firmware/misc/platform/stm32f4xx/ |
D | Makefile | 42 src/platform/$(PLATFORM)/gpio.c \ 58 SRCS_bl += src/platform/$(PLATFORM)/pwr.c src/platform/$(PLATFORM)/gpio.c
|
/device/google/contexthub/ |
D | CodingStandard.txt | 11 name of their module (gpio, pwm, os) 44 22. Whenever possible, hide struct definitions from global scope. Eg: gpio funcs return
|
/device/moto/shamu/ |
D | device.mk | 42 device/moto/shamu/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
|
/device/lge/bullhead/ |
D | device.mk | 77 device/lge/bullhead/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
|
/device/huawei/angler/ |
D | device.mk | 83 device/huawei/angler/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
|