Lines Matching +full:1 +full:pin
24 uint8_t pin = (pins->config >> CH32V003_PINCTRL_PIN_SHIFT) & 0x0F; in pinctrl_configure_pins() local
36 cfg |= (pins->slew_rate + 1); in pinctrl_configure_pins()
47 regs->CFGLR = (regs->CFGLR & ~(0x0F << (pin * 4))) | (cfg << (pin * 4)); in pinctrl_configure_pins()
50 regs->OUTDR |= BIT(pin); in pinctrl_configure_pins()
51 regs->BSHR |= BIT(pin); in pinctrl_configure_pins()
53 regs->OUTDR |= BIT(pin); in pinctrl_configure_pins()
54 /* Reset the pin. */ in pinctrl_configure_pins()
55 regs->BSHR |= BIT(pin + 16); in pinctrl_configure_pins()
57 regs->OUTDR &= ~(1 << pin); in pinctrl_configure_pins()
59 regs->BSHR = BIT(pin); in pinctrl_configure_pins()
62 regs->BCR = BIT(pin); in pinctrl_configure_pins()
67 pcfr1 |= ((remap & 1) << CH32V003_PINMUX_I2C1_RM) | in pinctrl_configure_pins()
68 (((remap >> 1) & 1) << CH32V003_PINMUX_I2C1_RM1); in pinctrl_configure_pins()
70 pcfr1 |= ((remap & 1) << CH32V003_PINMUX_USART1_RM) | in pinctrl_configure_pins()
71 (((remap >> 1) & 1) << CH32V003_PINMUX_USART1_RM1); in pinctrl_configure_pins()