Searched refs:pin_bit (Results 1 – 2 of 2) sorted by relevance
96 static inline uint8_t configure_spd(uint32_t port, uint32_t pin_bit, in configure_spd() argument102 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() local131 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()
179 uint32_t ctl, pin_bit; in gpio_gd32_configure() local181 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()