Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/gpio/
Dwch_gpio_ch32v00x.c32 uint32_t cnf_mode; in gpio_ch32v00x_configure() local
36 cnf_mode = 0x01; in gpio_ch32v00x_configure()
44 cnf_mode = GPIO_CFGLR_IN_PUPD; in gpio_ch32v00x_configure()
47 cnf_mode = GPIO_CFGLR_IN_PUPD; in gpio_ch32v00x_configure()
50 cnf_mode = GPIO_CFGLR_IN_FLOAT; in gpio_ch32v00x_configure()
53 cnf_mode = 0x00; in gpio_ch32v00x_configure()
57 regs->CFGLR = (regs->CFGLR & ~(0x0F << (4 * pin))) | (cnf_mode << (4 * pin)); in gpio_ch32v00x_configure()
60 (regs->CFGHR & ~(0x0F << ((pin - 8) * 4))) | (cnf_mode << ((pin - 8) * 4)); in gpio_ch32v00x_configure()