Home
last modified time | relevance | path

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

/Zephyr-Core-2.7.6/soc/arm/atmel_sam0/common/
Dsoc_port.c38 PORT_PINCFG_Type pincfg = { .reg = 0 }; in soc_port_configure() local
41 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()
/Zephyr-Core-2.7.6/drivers/gpio/
Dgpio_sam0.c60 PORT_PINCFG_Type pincfg = { in gpio_sam0_config() local
70 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() local
182 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()
Dgpio_stm32.c49 static int gpio_stm32_flags_to_conf(int flags, int *pincfg) in gpio_stm32_flags_to_conf() argument
55 *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 …]
/Zephyr-Core-2.7.6/drivers/pinmux/
Dpinmux_stm32.c115 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()
Dpinmux_stm32.h37 uint32_t pincfg; member
/Zephyr-Core-2.7.6/tests/lib/devicetree/api/
Dapp.overlay29 test_pincfg_a: pincfg-a {};
30 test_pincfg_b: pincfg-b {};
31 test_pincfg_c: pincfg-c {};
32 test_pincfg_d: pincfg-d {};