Searched refs:pincfg (Results 1 – 6 of 6) sorted by relevance
38 PORT_PINCFG_Type pincfg = { .reg = 0 }; in soc_port_configure() local41 pg->PINCFG[pin->pinum] = pincfg; in soc_port_configure()55 pincfg.bit.PULLEN = 1; in soc_port_configure()59 pincfg.bit.INEN = 1; in soc_port_configure()67 pincfg.bit.DRVSTR = 1; in soc_port_configure()70 pg->PINCFG[pin->pinum] = pincfg; in soc_port_configure()
60 PORT_PINCFG_Type pincfg = { in gpio_sam0_config() local70 pincfg.bit.INEN = 1; in gpio_sam0_config()90 pincfg.bit.PULLEN = 1; in gpio_sam0_config()102 && (pincfg.bit.INEN != 0)); in gpio_sam0_config()105 regs->PINCFG[pin] = pincfg; in gpio_sam0_config()172 PORT_PINCFG_Type pincfg = { in gpio_sam0_pin_interrupt_configure() local182 pincfg.bit.PMUXEN = 0; in gpio_sam0_pin_interrupt_configure()201 if ((pincfg.bit.INEN == 0) in gpio_sam0_pin_interrupt_configure()208 pincfg.bit.PMUXEN = 1; in gpio_sam0_pin_interrupt_configure()251 regs->PINCFG[pin] = pincfg; in gpio_sam0_pin_interrupt_configure()
49 static int gpio_stm32_flags_to_conf(int flags, int *pincfg) in gpio_stm32_flags_to_conf() argument55 *pincfg = STM32_PINCFG_MODE_OUTPUT; in gpio_stm32_flags_to_conf()59 *pincfg |= STM32_PINCFG_OPEN_DRAIN; in gpio_stm32_flags_to_conf()65 *pincfg |= STM32_PINCFG_PUSH_PULL; in gpio_stm32_flags_to_conf()69 *pincfg |= STM32_PINCFG_PULL_UP; in gpio_stm32_flags_to_conf()71 *pincfg |= STM32_PINCFG_PULL_DOWN; in gpio_stm32_flags_to_conf()77 *pincfg = STM32_PINCFG_MODE_INPUT; in gpio_stm32_flags_to_conf()80 *pincfg |= STM32_PINCFG_PULL_UP; in gpio_stm32_flags_to_conf()82 *pincfg |= STM32_PINCFG_PULL_DOWN; in gpio_stm32_flags_to_conf()84 *pincfg |= STM32_PINCFG_FLOATING; in gpio_stm32_flags_to_conf()[all …]
115 func = pinctrl[i].pincfg | STM32_MODE_OUTPUT | in stm32_dt_pinctrl_configure()118 func = pinctrl[i].pincfg | STM32_MODE_INPUT | in stm32_dt_pinctrl_configure()121 func = pinctrl[i].pincfg | STM32_MODE_INPUT; in stm32_dt_pinctrl_configure()134 func = pinctrl[i].pincfg | STM32_MODER_ALT_MODE; in stm32_dt_pinctrl_configure()
37 uint32_t pincfg; member
29 test_pincfg_a: pincfg-a {};30 test_pincfg_b: pincfg-b {};31 test_pincfg_c: pincfg-c {};32 test_pincfg_d: pincfg-d {};