Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/gpio/
Dgpio_b91.c30 #define GET_PORT_NUM(gpio) ((uint8_t)(((uint32_t)gpio - DT_REG_ADDR(DT_NODELABEL(gpioa))) / \ macro
104 BM_SET(reg_irq_risc0_en(GET_PORT_NUM(gpio)), BIT(pin)); in gpiob_b91_irq_en_set()
106 BM_SET(reg_irq_risc1_en(GET_PORT_NUM(gpio)), BIT(pin)); in gpiob_b91_irq_en_set()
121 BM_CLR(reg_irq_risc0_en(GET_PORT_NUM(gpio)), BIT(pin)); in gpiob_b91_irq_en_clr()
123 BM_CLR(reg_irq_risc1_en(GET_PORT_NUM(gpio)), BIT(pin)); in gpiob_b91_irq_en_clr()
137 status = reg_irq_risc0_en(GET_PORT_NUM(gpio)); in gpio_b91_irq_en_get()
139 status = reg_irq_risc1_en(GET_PORT_NUM(gpio)); in gpio_b91_irq_en_get()
231 analog_reg = 0x0e + (GET_PORT_NUM(gpio) << 1) + ((pin & 0xf0) ? 1 : 0); in gpio_b91_up_down_res_set()