Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/drivers/pinctrl/
Dpinctrl_npcx.c79 static void npcx_periph_pupd_configure(const struct npcx_periph *pupd, in npcx_periph_pupd_configure() argument
85 NPCX_PUPD_EN(scfg_base, pupd->group) &= ~BIT(pupd->bit); in npcx_periph_pupd_configure()
87 NPCX_PUPD_EN(scfg_base, pupd->group) |= BIT(pupd->bit); in npcx_periph_pupd_configure()
Dpinctrl_gd32_afio.c160 uint8_t pupd = GD32_PUPD_GET(pin); in configure_pin() local
162 if (pupd == GD32_PUPD_NONE) { in configure_pin()
167 if (pupd == GD32_PUPD_PULLDOWN) { in configure_pin()
169 } else if (pupd == GD32_PUPD_PULLUP) { in configure_pin()
Dpinctrl_stm32.c238 uint32_t pupd; in pinctrl_configure_pins() local
246 pupd = pin_cgf & (STM32_PUPD_MASK << STM32_PUPD_SHIFT); in pinctrl_configure_pins()
247 if (pupd == STM32_PUPD_NO_PULL) { in pinctrl_configure_pins()
/Zephyr-Core-3.5.0/drivers/gpio/
Dgpio_gd32.c135 uint32_t ctl, pupd; in gpio_gd32_configure() local
140 pupd = GPIO_PUD(config->reg); in gpio_gd32_configure()
141 pupd &= ~GPIO_PUPD_MASK(pin); in gpio_gd32_configure()
168 pupd |= GPIO_PUPD_SET(pin, GPIO_PUPD_PULLUP); in gpio_gd32_configure()
170 pupd |= GPIO_PUPD_SET(pin, GPIO_PUPD_PULLDOWN); in gpio_gd32_configure()
172 pupd |= GPIO_PUPD_SET(pin, GPIO_PUPD_NONE); in gpio_gd32_configure()
175 GPIO_PUD(config->reg) = pupd; in gpio_gd32_configure()
Dgpio_stm32.c116 if (pin_cfg.pupd == LL_GPIO_PULL_UP) { in gpio_stm32_pincfg_to_flags()
118 } else if (pin_cfg.pupd == LL_GPIO_PULL_DOWN) { in gpio_stm32_pincfg_to_flags()
227 unsigned int mode, otype, ospeed, pupd; in gpio_stm32_configure_raw() local
232 pupd = conf & (STM32_PUPDR_MASK << STM32_PUPDR_SHIFT); in gpio_stm32_configure_raw()
250 LL_GPIO_SetPinPull(gpio, pin_ll, pupd >> STM32_PUPDR_SHIFT); in gpio_stm32_configure_raw()
573 pin_config.pupd = LL_GPIO_GetPinPull(gpio, pin_ll); in gpio_stm32_get_config()
Dgpio_stm32.h219 unsigned int pupd; /* LL_GPIO_PULL_NO or LL_GPIO_PULL_UP or LL_GPIO_PULL_DOWN */ member
/Zephyr-Core-3.5.0/dts/arm/nuvoton/npcx/npcx7/
Dnpcx7-pinctrl.dtsi45 periph-pupd = <0x00 0>;
50 periph-pupd = <0x00 2>;
55 periph-pupd = <0x00 4>;
60 periph-pupd = <0x00 6>;
65 periph-pupd = <0x01 2>;
70 periph-pupd = <0x00 5>;
75 periph-pupd = <0x01 1>;
80 periph-pupd = <0x00 3>;
85 periph-pupd = <0x01 0>;
90 periph-pupd = <0x00 1>;
[all …]
/Zephyr-Core-3.5.0/dts/arm/nuvoton/npcx/npcx4/
Dnpcx4-pinctrl.dtsi55 periph-pupd = <0x00 0>;
60 periph-pupd = <0x00 2>;
65 periph-pupd = <0x00 4>;
70 periph-pupd = <0x00 6>;
75 periph-pupd = <0x00 7>;
80 periph-pupd = <0x01 2>;
85 periph-pupd = <0x00 5>;
90 periph-pupd = <0x01 1>;
95 periph-pupd = <0x00 3>;
100 periph-pupd = <0x01 0>;
[all …]
/Zephyr-Core-3.5.0/dts/arm/nuvoton/npcx/npcx9/
Dnpcx9-pinctrl.dtsi54 periph-pupd = <0x00 0>;
59 periph-pupd = <0x00 2>;
64 periph-pupd = <0x00 4>;
69 periph-pupd = <0x00 6>;
74 periph-pupd = <0x01 2>;
79 periph-pupd = <0x00 5>;
84 periph-pupd = <0x01 1>;
89 periph-pupd = <0x00 3>;
94 periph-pupd = <0x01 0>;
99 periph-pupd = <0x00 1>;
[all …]