Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/drivers/pinctrl/
Dpinctrl_gd32_afio.c96 static inline uint8_t configure_spd(uint32_t port, uint32_t pin_bit, in configure_spd() argument
102 GPIOx_SPD(port) |= pin_bit; in configure_spd()
107 GPIOx_SPD(port) &= ~pin_bit; in configure_spd()
121 uint32_t port, pin_bit, reg_val; in configure_pin() local
131 pin_bit = BIT(pin_num); in configure_pin()
150 new_mode = configure_spd(port, pin_bit, GD32_OSPEED_GET(pin)); in configure_pin()
168 GPIO_BC(port) = pin_bit; in configure_pin()
170 GPIO_BOP(port) = pin_bit; in configure_pin()
/Zephyr-Core-3.6.0/drivers/gpio/
Dgpio_gd32.c179 uint32_t ctl, pin_bit; in gpio_gd32_configure() local
181 pin_bit = BIT(pin); in gpio_gd32_configure()
205 GPIO_BOP(config->reg) = pin_bit; in gpio_gd32_configure()
207 GPIO_BC(config->reg) = pin_bit; in gpio_gd32_configure()
212 GPIO_BOP(config->reg) = pin_bit; in gpio_gd32_configure()
215 GPIO_BC(config->reg) = pin_bit; in gpio_gd32_configure()