Lines Matching +full:1 +full:pin
40 static int kb1200_gpio_pin_configure(const struct device *dev, gpio_pin_t pin, gpio_flags_t flags) in kb1200_gpio_pin_configure() argument
44 WRITE_BIT(config->gpio_regs->GPIOFS, pin, 0); in kb1200_gpio_pin_configure()
46 WRITE_BIT(config->gpio_regs->GPIOIE, pin, 1); in kb1200_gpio_pin_configure()
49 WRITE_BIT(config->gpio_regs->GPIOOD, pin, 1); in kb1200_gpio_pin_configure()
52 WRITE_BIT(config->gpio_regs->GPIOOD, pin, 0); in kb1200_gpio_pin_configure()
55 WRITE_BIT(config->gpio_regs->GPIOPU, pin, 1); in kb1200_gpio_pin_configure()
57 WRITE_BIT(config->gpio_regs->GPIOPU, pin, 0); in kb1200_gpio_pin_configure()
60 WRITE_BIT(config->gpio_regs->GPIOD, pin, 1); in kb1200_gpio_pin_configure()
62 WRITE_BIT(config->gpio_regs->GPIOD, pin, 0); in kb1200_gpio_pin_configure()
64 WRITE_BIT(config->gpio_regs->GPIOOE, pin, 1); in kb1200_gpio_pin_configure()
66 WRITE_BIT(config->gpio_regs->GPIOOE, pin, 0); in kb1200_gpio_pin_configure()
68 WRITE_BIT(config->gpio_regs->GPIOPU, pin, 1); in kb1200_gpio_pin_configure()
70 WRITE_BIT(config->gpio_regs->GPIOPU, pin, 0); in kb1200_gpio_pin_configure()
72 WRITE_BIT(config->gpio_regs->GPIOIE, pin, 1); in kb1200_gpio_pin_configure()
118 static int kb1200_gpio_pin_interrupt_configure(const struct device *dev, gpio_pin_t pin, in kb1200_gpio_pin_interrupt_configure() argument
126 WRITE_BIT(config->gptd_regs->GPTDIE, pin, 0); in kb1200_gpio_pin_interrupt_configure()
129 WRITE_BIT(config->gptd_regs->GPTDEL, pin, 0); in kb1200_gpio_pin_interrupt_configure()
133 WRITE_BIT(config->gptd_regs->GPTDCHG, pin, 1); in kb1200_gpio_pin_interrupt_configure()
136 WRITE_BIT(config->gptd_regs->GPTDCHG, pin, 0); in kb1200_gpio_pin_interrupt_configure()
137 WRITE_BIT(config->gptd_regs->GPTDPS, pin, 1); in kb1200_gpio_pin_interrupt_configure()
141 WRITE_BIT(config->gptd_regs->GPTDCHG, pin, 0); in kb1200_gpio_pin_interrupt_configure()
142 WRITE_BIT(config->gptd_regs->GPTDPS, pin, 0); in kb1200_gpio_pin_interrupt_configure()
145 WRITE_BIT(config->gptd_regs->GPTDEL, pin, 1); in kb1200_gpio_pin_interrupt_configure()
147 WRITE_BIT(config->gptd_regs->GPTDCHG, pin, 0); in kb1200_gpio_pin_interrupt_configure()
149 WRITE_BIT(config->gptd_regs->GPTDPS, pin, 1); in kb1200_gpio_pin_interrupt_configure()
151 WRITE_BIT(config->gptd_regs->GPTDPS, pin, 0); in kb1200_gpio_pin_interrupt_configure()
155 WRITE_BIT(config->gptd_regs->GPTDPF, pin, 1); in kb1200_gpio_pin_interrupt_configure()
157 WRITE_BIT(config->gptd_regs->GPTDIE, pin, 1); in kb1200_gpio_pin_interrupt_configure()
195 IRQ_CONNECT(DT_INST_IRQ_BY_IDX(n, 1, irq), DT_INST_IRQ_BY_IDX(n, 1, priority), \
197 irq_enable(DT_INST_IRQ_BY_IDX(n, 1, irq)); \
203 .gptd_regs = (struct gptd_regs *)DT_INST_REG_ADDR_BY_IDX(n, 1), \