/device/soc/telink/b91/b91_ble_sdk/drivers/B91/ |
D | gpio.h | 165 static inline void gpio_function_en(gpio_pin_e pin) in gpio_function_en() argument 167 unsigned char bit = pin & 0xff; in gpio_function_en() 168 BM_SET(reg_gpio_func(pin), bit); in gpio_function_en() 176 static inline void gpio_function_dis(gpio_pin_e pin) in gpio_function_dis() argument 178 unsigned char bit = pin & 0xff; in gpio_function_dis() 179 BM_CLR(reg_gpio_func(pin), bit); in gpio_function_dis() 187 static inline void gpio_set_high_level(gpio_pin_e pin) in gpio_set_high_level() argument 189 unsigned char bit = pin & 0xff; in gpio_set_high_level() 190 BM_SET(reg_gpio_out(pin), bit); in gpio_set_high_level() 198 static inline void gpio_set_low_level(gpio_pin_e pin) in gpio_set_low_level() argument [all …]
|
D | gpio.c | 53 void gpio_input_en(gpio_pin_e pin) in gpio_input_en() argument 55 unsigned char bit = pin & 0xff; in gpio_input_en() 56 unsigned short group = pin & 0xf00; in gpio_input_en() 59 BM_SET(reg_gpio_ie(pin), bit); in gpio_input_en() 72 void gpio_input_dis(gpio_pin_e pin) in gpio_input_dis() argument 74 unsigned char bit = pin & 0xff; in gpio_input_dis() 75 unsigned short group = pin & 0xf00; in gpio_input_dis() 78 BM_CLR(reg_gpio_ie(pin), bit); in gpio_input_dis() 92 void gpio_set_input(gpio_pin_e pin, unsigned char value) in gpio_set_input() argument 95 gpio_input_en(pin); in gpio_set_input() [all …]
|
D | timer.c | 94 void timer_gpio_init(timer_type_e type, gpio_pin_e pin, gpio_pol_e pol) in timer_gpio_init() argument 96 gpio_function_en(pin); in timer_gpio_init() 97 gpio_output_dis(pin); // disable output in timer_gpio_init() 98 gpio_input_en(pin); // enable input in timer_gpio_init() 102 gpio_set_up_down_res(pin, GPIO_PIN_PULLUP_10K); in timer_gpio_init() 103 gpio_set_gpio2risc0_irq(pin, INTR_LOW_LEVEL); in timer_gpio_init() 104 gpio_gpio2risc0_irq_en(pin); in timer_gpio_init() 106 gpio_set_up_down_res(pin, GPIO_PIN_PULLDOWN_100K); in timer_gpio_init() 107 gpio_set_gpio2risc0_irq(pin, INTR_HIGH_LEVEL); in timer_gpio_init() 108 gpio_gpio2risc0_irq_en(pin); in timer_gpio_init() [all …]
|
D | spi.c | 96 void hspi_set_pin_mux(hspi_pin_def_e pin) in hspi_set_pin_mux() argument 98 if (pin != HSPI_NONE_PIN) { in hspi_set_pin_mux() 100 unsigned char start_bit = (BIT_LOW_BIT(pin & 0xff) % 4) << 1; in hspi_set_pin_mux() 103 … if ((pin == HSPI_CLK_PB4_PIN) || (pin == HSPI_CSN_PB6_PIN) || (pin == HSPI_MOSI_IO0_PB3_PIN) || in hspi_set_pin_mux() 104 …(pin == HSPI_MISO_IO1_PB2_PIN) || (pin == HSPI_WP_IO2_PB1_PIN) || (pin == HSPI_HOLD_IO3_PB0_PIN)) { in hspi_set_pin_mux() 106 …} else if ((pin == HSPI_CLK_PA2_PIN) || (pin == HSPI_CSN_PA1_PIN) || (pin == HSPI_MOSI_IO0_PA4_PIN… in hspi_set_pin_mux() 107 (pin == HSPI_MISO_IO1_PA3_PIN)) { in hspi_set_pin_mux() 111 reg_gpio_func_mux(pin) = (reg_gpio_func_mux(pin) & mask) | val; in hspi_set_pin_mux() 112 gpio_function_dis(pin); in hspi_set_pin_mux() 113 gpio_input_en(pin); in hspi_set_pin_mux() [all …]
|
D | pwm.c | 41 void pwm_set_pin(pwm_pin_e pin) in pwm_set_pin() argument 44 unsigned char start_bit = (BIT_LOW_BIT(pin & 0xff) % 4) << 1; in pwm_set_pin() 47 if (pin == PWM_PWM2_PB7) { // Pad Function Mux:0 in pwm_set_pin() 50 } else if ((pin == PWM_PWM0_PB4) || (pin == PWM_PWM4_PD7) || (pin == PWM_PWM2_N_PE6) || in pwm_set_pin() 51 (pin == PWM_PWM3_N_PE7)) { // Pad Function Mux:1 in pwm_set_pin() 58 reg_gpio_func_mux(pin) = (reg_gpio_func_mux(pin) & mask) | val; in pwm_set_pin() 59 gpio_function_dis(pin); in pwm_set_pin()
|
/device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/ |
D | hal_gpio_v1.c | 31 #define HAL_GPIO_PIN_TO_BANK(pin) \ argument 32 ((pin)/HAL_GPIO_PIN_NUM_EACH_BANK) 34 #define HAL_GPIO_PIN_TO_PORT(pin) \ argument 35 (((pin)%HAL_GPIO_PIN_NUM_EACH_BANK)/HAL_GPIO_PIN_NUM_EACH_PORT) 44 #define HAL_GPIO_AUX_PIN_TO_BANK(pin) \ argument 45 (((pin) - HAL_GPIO_PIN_P4_0)/HAL_GPIO_AUX_PIN_NUM_EACH_BANK) 47 #define HAL_GPIO_AUX_PIN_TO_PORT(pin) \ argument 48 ((((pin) - HAL_GPIO_PIN_P4_0)%HAL_GPIO_AUX_PIN_NUM_EACH_BANK)/HAL_GPIO_AUX_PIN_NUM_EACH_PORT) 71 enum HAL_GPIO_DIR_T hal_gpio_pin_get_dir(enum HAL_GPIO_PIN_T pin) in hal_gpio_pin_get_dir() argument 81 ASSERT(pin < max_pin, err_bad_pin, pin, max_pin); in hal_gpio_pin_get_dir() [all …]
|
D | hal_gpio_v2.c | 83 static uint32_t hal_gpio_pin_to_bank(enum HAL_GPIO_PIN_T pin) in hal_gpio_pin_to_bank() argument 85 uint32_t p = pin; in hal_gpio_pin_to_bank() 93 ASSERT(false, "%s: Bad gpio pin: %u", __func__, pin); in hal_gpio_pin_to_bank() 97 static uint32_t hal_gpio_pin_to_offset(enum HAL_GPIO_PIN_T pin) in hal_gpio_pin_to_offset() argument 99 uint32_t p = pin; in hal_gpio_pin_to_offset() 107 ASSERT(false, "%s: Bad gpio pin: %u", __func__, pin); in hal_gpio_pin_to_offset() 125 enum HAL_GPIO_DIR_T hal_gpio_pin_get_dir(enum HAL_GPIO_PIN_T pin) in hal_gpio_pin_get_dir() argument 135 ASSERT(pin < max_pin, err_bad_pin, pin, max_pin); in hal_gpio_pin_get_dir() 139 } else if (pin == HAL_GPIO_PIN_LED1 || pin == HAL_GPIO_PIN_LED2) { in hal_gpio_pin_get_dir() 140 return pmu_led_get_direction(pin); in hal_gpio_pin_get_dir() [all …]
|
D | hal_iomux.h | 55 enum HAL_IOMUX_PIN_T pin; member 63 uint32_t hal_iomux_set_function(enum HAL_IOMUX_PIN_T pin, enum HAL_IOMUX_FUNCTION_T func, enum HAL_… 64 enum HAL_IOMUX_FUNCTION_T hal_iomux_get_function(enum HAL_IOMUX_PIN_T pin); 65 uint32_t hal_iomux_set_io_voltage_domains(enum HAL_IOMUX_PIN_T pin, enum HAL_IOMUX_PIN_VOLTAGE_DOMA… 66 uint32_t hal_iomux_set_io_pull_select(enum HAL_IOMUX_PIN_T pin, enum HAL_IOMUX_PIN_PULL_SELECT_T pu… 67 uint32_t hal_iomux_set_io_drv(enum HAL_IOMUX_PIN_T pin, uint32_t val); 89 void hal_iomux_set_dig_mic_clock_pin(enum HAL_IOMUX_PIN_T pin); 90 void hal_iomux_set_dig_mic_data0_pin(enum HAL_IOMUX_PIN_T pin); 91 void hal_iomux_set_dig_mic_data1_pin(enum HAL_IOMUX_PIN_T pin); 92 void hal_iomux_set_dig_mic_data2_pin(enum HAL_IOMUX_PIN_T pin); [all …]
|
D | hal_gpio.h | 40 typedef void (* HAL_GPIO_PIN_IRQ_HANDLER)(enum HAL_GPIO_PIN_T pin); 50 enum HAL_GPIO_DIR_T hal_gpio_pin_get_dir(enum HAL_GPIO_PIN_T pin); 51 void hal_gpio_pin_set_dir(enum HAL_GPIO_PIN_T pin, enum HAL_GPIO_DIR_T dir, uint8_t val_for_out); 52 void hal_gpio_pin_set(enum HAL_GPIO_PIN_T pin); 53 void hal_gpio_pin_clr(enum HAL_GPIO_PIN_T pin); 54 uint8_t hal_gpio_pin_get_val(enum HAL_GPIO_PIN_T pin); 55 uint8_t hal_gpio_setup_irq(enum HAL_GPIO_PIN_T pin, const struct HAL_GPIO_IRQ_CFG_T *cfg);
|
/device/soc/winnermicro/wm800/board/platform/drivers/io/ |
D | wm_io.c | 34 u8 pin; in io_cfg_option1() local 38 pin = name - WM_IO_PB_00; in io_cfg_option1() 41 pin = name; in io_cfg_option1() 45 …tls_reg_write32(HR_GPIO_AF_SEL + offset, tls_reg_read32(HR_GPIO_AF_SEL + offset) | BIT(pin)); /* … in io_cfg_option1() 46 tls_reg_write32(HR_GPIO_AF_S1 + offset, tls_reg_read32(HR_GPIO_AF_S1 + offset) & (~BIT(pin))); in io_cfg_option1() 47 tls_reg_write32(HR_GPIO_AF_S0 + offset, tls_reg_read32(HR_GPIO_AF_S0 + offset) & (~BIT(pin))); in io_cfg_option1() 52 u8 pin; in io_cfg_option2() local 56 pin = name - WM_IO_PB_00; in io_cfg_option2() 59 pin = name; in io_cfg_option2() 63 …tls_reg_write32(HR_GPIO_AF_SEL + offset, tls_reg_read32(HR_GPIO_AF_SEL + offset) | BIT(pin)); /* … in io_cfg_option2() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/app_drivers/src/ |
D | app_io.c | 104 if (APP_IO_PINS_0_15 & p_init->pin) { in app_io_init() 105 io_config.pin = (APP_IO_PINS_0_15 & p_init->pin); in app_io_init() 108 if (APP_IO_PINS_16_31 & p_init->pin) { in app_io_init() 109 io_config.pin = (APP_IO_PINS_16_31 & p_init->pin) >> BIT_16; in app_io_init() 121 aon_io_config.pin = (APP_AON_IO_PIN_ALL & p_init->pin); in app_io_init() 134 msio_config.pin = (APP_MSIO_PIN_ALL & p_init->pin); in app_io_init() 146 uint16_t app_io_deinit(app_io_type_t type, uint32_t pin) in app_io_deinit() argument 150 if (APP_IO_PINS_0_15 & pin) { in app_io_deinit() 151 hal_gpio_deinit(GPIO0, (APP_IO_PINS_0_15 & pin)); in app_io_deinit() 153 if (APP_IO_PINS_16_31 & pin) { in app_io_deinit() [all …]
|
D | app_gpiote.c | 109 if (APP_IO_PINS_0_15 & s_gpiote_env.params[idx].pin) { in gpiote_wake_up_ind() 113 if (APP_IO_PINS_16_31 & s_gpiote_env.params[idx].pin) { in gpiote_wake_up_ind() 149 hal_pwr_config_ext_wakeup(p_params[idx].pin, PWR_EXTWKUP_TYPE_RISING); in gpiote_wakeup_mode_config() 153 hal_pwr_config_ext_wakeup(p_params[idx].pin, PWR_EXTWKUP_TYPE_FALLING); in gpiote_wakeup_mode_config() 157 hal_pwr_config_ext_wakeup(p_params[idx].pin, PWR_EXTWKUP_TYPE_HIGH); in gpiote_wakeup_mode_config() 161 hal_pwr_config_ext_wakeup(p_params[idx].pin, PWR_EXTWKUP_TYPE_LOW); in gpiote_wakeup_mode_config() 201 if (s_gpiote_env.params[index].pin == p_params[idx].pin && \ in app_gpiote_init() 208 io_init.pin = p_params[idx].pin; in app_gpiote_init() 213 app_io_deinit(p_params[idx].type, io_init.pin); in app_gpiote_init() 251 hal_pwr_config_ext_wakeup(p_config->pin, PWR_EXTWKUP_TYPE_RISING); in gpiote_config_wake_up_config() [all …]
|
/device/soc/winnermicro/wm800/board/platform/drivers/gpio/ |
D | wm_gpio.c | 96 u8 pin; in tls_gpio_cfg() local 100 pin = gpio_pin - WM_IO_PB_00; in tls_gpio_cfg() 103 pin = gpio_pin; in tls_gpio_cfg() 112 …tls_reg_write32(HR_GPIO_DIR + offset, tls_reg_read32(HR_GPIO_DIR + offset) | BIT(pin)); /* 1 … in tls_gpio_cfg() 114 …tls_reg_write32(HR_GPIO_DIR + offset, tls_reg_read32(HR_GPIO_DIR + offset) & (~BIT(pin))); /* … in tls_gpio_cfg() 119 …tls_reg_write32(HR_GPIO_PULLUP_EN + offset, tls_reg_read32(HR_GPIO_PULLUP_EN + offset) | BIT(pin)); in tls_gpio_cfg() 121 …eg_write32(HR_GPIO_PULLDOWN_EN + offset, tls_reg_read32(HR_GPIO_PULLDOWN_EN + offset)&(~BIT(pin))); in tls_gpio_cfg() 125 …_reg_write32(HR_GPIO_PULLUP_EN + offset, tls_reg_read32(HR_GPIO_PULLUP_EN + offset) & (~BIT(pin))); in tls_gpio_cfg() 127 …g_write32(HR_GPIO_PULLDOWN_EN + offset, tls_reg_read32(HR_GPIO_PULLDOWN_EN + offset) &(~BIT(pin))); in tls_gpio_cfg() 132 …tls_reg_write32(HR_GPIO_PULLUP_EN + offset, tls_reg_read32(HR_GPIO_PULLUP_EN + offset) | BIT(pin)); in tls_gpio_cfg() [all …]
|
/device/soc/hpmicro/sdk/hpm_sdk/drivers/inc/ |
D | hpm_gpio_drv.h | 51 static inline uint8_t gpio_read_pin(GPIO_Type *ptr, uint32_t port, uint8_t pin) in gpio_read_pin() argument 53 return (ptr->DI[port].VALUE & (1 << pin)) >> pin; in gpio_read_pin() 63 static inline void gpio_toggle_pin(GPIO_Type *ptr, uint32_t port, uint8_t pin) in gpio_toggle_pin() argument 65 ptr->DO[port].TOGGLE = 1 << pin; in gpio_toggle_pin() 76 static inline void gpio_write_pin(GPIO_Type *ptr, uint32_t port, uint8_t pin, uint8_t high) in gpio_write_pin() argument 79 ptr->DO[port].SET = 1 << pin; in gpio_write_pin() 81 ptr->DO[port].CLEAR = 1 << pin; in gpio_write_pin() 92 static inline void gpio_set_pin_input(GPIO_Type *ptr, uint32_t port, uint8_t pin) in gpio_set_pin_input() argument 94 ptr->OE[port].CLEAR = 1 << pin; in gpio_set_pin_input() 104 static inline void gpio_set_pin_output(GPIO_Type *ptr, uint32_t port, uint8_t pin) in gpio_set_pin_output() argument [all …]
|
/device/soc/goodix/gr551x/adapter/hals/iot_hardware/wifiiot_lite/ |
D | hal_iot_gpio.c | 97 static inline app_io_type_t pin_map(uint32_t id, uint32_t *pin) in pin_map() argument 100 *pin = (1UL << id); in pin_map() 103 *pin = (1UL << (id - GR551X_AON_GPIO_START_IDX)); in pin_map() 106 *pin = (1UL << (id - GR551X_MSIO_GPIO_START_IDX)); in pin_map() 111 static int get_pin_index(uint32_t pin) in get_pin_index() argument 114 while ((pin & 1) != 1) { in get_pin_index() 116 pin = pin >> 1; in get_pin_index() 126 index = get_pin_index(p_evt->pin); in app_io_callback() 128 index = get_pin_index(p_evt->pin) + GR551X_AON_GPIO_START_IDX; in app_io_callback() 148 uint32_t pin = 0; in IoTGpioSetDir() local [all …]
|
/device/soc/telink/b91/b91_ble_sdk/drivers/B91/compatibility_pack/ |
D | cmpt.h | 54 #define gpio_write(pin, value) gpio_set_level(pin, value) argument 62 #define gpio_set_output_en(pin, value) gpio_set_output(pin, value) argument 70 #define gpio_read(pin) gpio_get_level(pin) argument 78 #define gpio_set_gpio_en(pin) gpio_function_en(pin) argument 87 #define gpio_set_input_en(pin, value) gpio_set_input(pin, value) argument
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/pinctrl/ |
D | pinctrl-sunxi.h | 37 #define SUNXI_PINCTRL_PIN(bank, pin) \ argument 38 PINCTRL_PIN(P ## bank ## _BASE + (pin), "P" #bank #pin) 158 struct pinctrl_pin_desc pin; member 184 unsigned pin; member 213 .pin = _pin, \ 220 .pin = _pin, \ 271 static inline u32 sunxi_mux_reg(u16 pin, enum sunxi_pinctrl_hw_type hw_type) in sunxi_mux_reg() argument 273 u8 bank = pin / PINS_PER_BANK; in sunxi_mux_reg() 276 offset += pin % PINS_PER_BANK / MUX_PINS_PER_REG * 0x04; in sunxi_mux_reg() 280 static inline u32 sunxi_mux_offset(u16 pin) in sunxi_mux_offset() argument [all …]
|
D | pinctrl-sunxi.c | 105 const struct sunxi_desc_pin *pin = pctl->desc->pins + i; in sunxi_pinctrl_desc_find_function_by_name() local 107 if (!strcmp(pin->pin.name, pin_name)) { in sunxi_pinctrl_desc_find_function_by_name() 108 struct sunxi_desc_function *func = pin->functions; in sunxi_pinctrl_desc_find_function_by_name() 132 const struct sunxi_desc_pin *pin = pctl->desc->pins + i; in sunxi_pinctrl_desc_find_function_by_pin() local 134 if (pin->pin.number == pin_num) { in sunxi_pinctrl_desc_find_function_by_pin() 135 struct sunxi_desc_function *func = pin->functions; in sunxi_pinctrl_desc_find_function_by_pin() 171 *pins = (unsigned *)&pctl->groups[group].pin; in sunxi_pctrl_get_group_pins() 499 unsigned pin, in sunxi_pinctrl_set_io_bias_cfg() argument 502 unsigned short bank = pin / PINS_PER_BANK; in sunxi_pinctrl_set_io_bias_cfg() 535 pin -= pctl->desc->pin_base; in sunxi_pinctrl_set_io_bias_cfg() [all …]
|
/device/board/talkweb/niobe407/liteos_m/drivers/exit/src/ |
D | hal_exti.c | 73 uint32_t LL_SETUP_EXTI(LL_EXTI_InitConfig* cfg, uint16_t pin, uint16_t local, uint8_t group) in LL_SETUP_EXTI() argument 81 LL_SYSCFG_SetEXTISource(group, g_sysCfgExitLineMap[pin]); in LL_SETUP_EXTI() 93 g_pinsGroup[g_exitSetupCounts].pin = pin; in LL_SETUP_EXTI() 101 if (pin < PIN_EXIT_FIVE) { in LL_SETUP_EXTI() 102 NVIC_SetVector(EXTI0_IRQn + pin, (uint32_t)LL_Gpio_Exti_Handler); in LL_SETUP_EXTI() 103 NVIC_SetPriority(EXTI0_IRQn + pin, 0); in LL_SETUP_EXTI() 104 NVIC_EnableIRQ(EXTI0_IRQn + pin); in LL_SETUP_EXTI() 105 } else if (pin >= PIN_EXIT_FIVE && pin < PIN_EXIT_TEN) { in LL_SETUP_EXTI() 109 } else if (pin >= PIN_EXIT_TEN && pin < PIN_EXIT_SIXTEEN) { in LL_SETUP_EXTI()
|
/device/soc/rockchip/rk2206/hardware/include/lz_hardware/ |
D | pinctrl.h | 168 static inline unsigned int PinctrlInit(Pinctrl pin) in PinctrlInit() argument 170 if (pin.gpio == INVALID_GPIO) { in PinctrlInit() 174 if (LzGpioInit(pin.gpio) != LZ_HARDWARE_SUCCESS) { in PinctrlInit() 178 PinctrlSet(pin.gpio, pin.func, pin.type, pin.drv); in PinctrlInit() 179 LzGpioSetDir(pin.gpio, pin.dir); in PinctrlInit() 180 LzGpioSetVal(pin.gpio, pin.val); in PinctrlInit()
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/drivers/inc/ |
D | gr55xx_ll_msio.h | 77 uint32_t pin; /**< Specifies the MSIO pins to be MSIO_InitStructured. member 219 .pin = LL_MSIO_PIN_ALL, \ 300 __STATIC_INLINE uint32_t ll_msio_get_pin_direction(uint32_t pin) in ll_msio_get_pin_direction() argument 302 uint32_t oe_mask = (pin << AON_MSIO_PAD_CFG_0_OE_N_Pos) & AON_MSIO_PAD_CFG_0_OE_N; in ll_msio_get_pin_direction() 303 uint32_t ie_mask = (pin << AON_MSIO_PAD_CFG_0_IE_N_Pos) & AON_MSIO_PAD_CFG_0_IE_N; in ll_msio_get_pin_direction() 363 __STATIC_INLINE uint32_t ll_msio_get_pin_mode(uint32_t pin) in ll_msio_get_pin_mode() argument 365 uint32_t ae_mask = (pin << AON_MSIO_PAD_CFG_1_AE_N_Pos) & AON_MSIO_PAD_CFG_1_AE_N; in ll_msio_get_pin_mode() 424 __STATIC_INLINE uint32_t ll_msio_get_pin_pull(uint32_t pin) in ll_msio_get_pin_pull() argument 426 …if (READ_BITS(AON->MSIO_PAD_CFG_0, (pin << AON_MSIO_PAD_CFG_0_RE_N_Pos) & AON_MSIO_PAD_CFG_0_RE_N)… in ll_msio_get_pin_pull() 429 uint32_t rtype_mask = (pin << AON_MSIO_PAD_CFG_1_RTYPE_Pos) & AON_MSIO_PAD_CFG_1_RTYPE; in ll_msio_get_pin_pull() [all …]
|
D | gr55xx_ll_aon_gpio.h | 77 uint32_t pin; /**< Specifies the AON_GPIO pins to be AON_GPIO_InitStructured. member 240 .pin = LL_AON_GPIO_PIN_ALL, \ 313 __STATIC_INLINE uint32_t ll_aon_gpio_get_pin_mode(uint32_t pin) in ll_aon_gpio_get_pin_mode() argument 315 pin = (pin << AON_PAD_CTL1_AON_GPO_OE_N_Pos) & AON_PAD_CTL1_AON_GPO_OE_N; in ll_aon_gpio_get_pin_mode() 316 return ((uint32_t)(READ_BITS(AON->AON_PAD_CTL1, pin) == LL_AON_GPIO_MODE_INPUT) ? in ll_aon_gpio_get_pin_mode() 377 __STATIC_INLINE uint32_t ll_aon_gpio_get_pin_pull(uint32_t pin) in ll_aon_gpio_get_pin_pull() argument 379 uint32_t RTypeMask = (pin << AON_PAD_CTL0_GPO_RTYPE_Pos) & AON_PAD_CTL0_GPO_RTYPE; in ll_aon_gpio_get_pin_pull() 380 uint32_t REnMask = (pin << AON_PAD_CTL0_GPO_RE_N_Pos) & AON_PAD_CTL0_GPO_RE_N; in ll_aon_gpio_get_pin_pull() 416 __STATIC_INLINE void ll_aon_gpio_set_mux_pin_0_7(uint32_t pin, uint32_t mux) in ll_aon_gpio_set_mux_pin_0_7() argument 418 uint32_t pos = POSITION_VAL(pin) << 2; in ll_aon_gpio_set_mux_pin_0_7() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/app_drivers/inc/ |
D | app_io.h | 116 .pin = APP_IO_PIN_ALL, \ 212 uint32_t pin; /**< Specifies the IO pins to be configured. member 248 uint16_t app_io_deinit(app_io_type_t type, uint32_t pin); 260 app_io_pin_state_t app_io_read_pin(app_io_type_t type, uint32_t pin); 273 uint16_t app_io_write_pin(app_io_type_t type, uint32_t pin, app_io_pin_state_t pin_state); 285 uint16_t app_io_toggle_pin(app_io_type_t type, uint32_t pin); 288 uint16_t app_io_toggle_pin_sym(app_io_type_t type, uint32_t pin); 290 uint16_t app_io_write_pin_sym(app_io_type_t type, uint32_t pin, app_io_pin_state_t pin_state); 292 app_io_pin_state_t app_io_read_pin_sym(app_io_type_t type, uint32_t pin); 294 uint16_t app_io_deinit_sym(app_io_type_t type, uint32_t pin);
|
/device/board/beken/bk7235x/hdf/src/ |
D | bk_gpio_driver.c | 27 uint32_t pin; member 33 uint32_t pin; member 61 return g_gpioPinMap[gpio].pin; in GpioGetHwPin() 64 static uint32_t GpioGetPinIdx(uint32_t pin) in GpioGetPinIdx() argument 68 if (g_gpioPinMap[i].pin == pin) in GpioGetPinIdx() 78 if (gpio >= g_gpioCnt || g_gpioPinMap[gpio].pin == INVALID_PIN) { in GpioDevWrite() 196 g_gpioPinMap[i].pin = INVALID_PIN; in init_pin_conifgs() 203 bk_gpio_disable_pull(config->pin); in config_pin() 205 bk_gpio_pull_up(config->pin); in config_pin() 207 bk_gpio_pull_down(config->pin); in config_pin() [all …]
|
/device/board/talkweb/niobe407/liteos_m/drivers/hdf_base_hal/src/ |
D | hdf_base_hal.c | 110 static bool GpioUseRegister(GPIO_PORT_MAP port, GPIO_PIN_MAP pin) in GpioUseRegister() argument 117 if (pin >= NIOBE_GPIO_PIN_MAX) { in GpioUseRegister() 122 if (g_GpioRegisterCache[port][pin] == GPIO_REGISTER_TAG) { in GpioUseRegister() 123 HDF_LOGE("ERR: NiobeGpioRegister clash, port_pin = [%d, %d]\r\n", port, pin); in GpioUseRegister() 127 g_GpioRegisterCache[port][pin] = GPIO_REGISTER_TAG; in GpioUseRegister() 131 static bool GpioUseRemove(GPIO_PORT_MAP port, GPIO_PIN_MAP pin) in GpioUseRemove() argument 138 if (pin >= NIOBE_GPIO_PIN_MAX) { in GpioUseRemove() 143 g_GpioRegisterCache[port][pin] = GPIO_REMOVE_TAG; in GpioUseRemove() 167 static unsigned int GetLLGpioPinMatch(GPIO_PIN_MAP pin) in GetLLGpioPinMatch() argument 169 if (pin >= NIOBE_GPIO_PIN_MAX) { in GetLLGpioPinMatch() [all …]
|