/device/soc/hpmicro/sdk/hpm_sdk/drivers/src/ |
D | hpm_gpio_drv.c | 11 void gpio_toggle_pin_interrupt_trigger_polarity(GPIO_Type *ptr, uint32_t gpio_index, uint8_t pin_in… in gpio_toggle_pin_interrupt_trigger_polarity() argument 13 bool intr_was_enabled = gpio_check_pin_interrupt_enabled(ptr, gpio_index, pin_index); in gpio_toggle_pin_interrupt_trigger_polarity() 14 gpio_disable_pin_interrupt(ptr, gpio_index, pin_index); in gpio_toggle_pin_interrupt_trigger_polarity() 15 ptr->PL[gpio_index].TOGGLE = 1 << pin_index; in gpio_toggle_pin_interrupt_trigger_polarity() 17 gpio_enable_pin_interrupt(ptr, gpio_index, pin_index); in gpio_toggle_pin_interrupt_trigger_polarity() 21 void gpio_toggle_pin_interrupt_trigger_type(GPIO_Type *ptr, uint32_t gpio_index, uint8_t pin_index) in gpio_toggle_pin_interrupt_trigger_type() argument 23 bool intr_was_enabled = gpio_check_pin_interrupt_enabled(ptr, gpio_index, pin_index); in gpio_toggle_pin_interrupt_trigger_type() 24 gpio_disable_pin_interrupt(ptr, gpio_index, pin_index); in gpio_toggle_pin_interrupt_trigger_type() 25 ptr->TP[gpio_index].TOGGLE = 1 << pin_index; in gpio_toggle_pin_interrupt_trigger_type() 27 gpio_enable_pin_interrupt(ptr, gpio_index, pin_index); in gpio_toggle_pin_interrupt_trigger_type() [all …]
|
/device/soc/hpmicro/sdk/hpm_sdk/drivers/inc/ |
D | hpm_gpiom_drv.h | 42 uint8_t gpio_index, in gpiom_get_pin_controller() argument 45 return (gpiom_gpio_t)((ptr->ASSIGN[gpio_index].PIN[pin_index] in gpiom_get_pin_controller() 58 uint8_t gpio_index, in gpiom_set_pin_controller() argument 62 ptr->ASSIGN[gpio_index].PIN[pin_index] = in gpiom_set_pin_controller() 63 (ptr->ASSIGN[gpio_index].PIN[pin_index] & ~(GPIOM_PIN_SELECT_MASK)) in gpiom_set_pin_controller() 79 uint8_t gpio_index, in gpiom_check_pin_visibility() argument 83 return (ptr->ASSIGN[gpio_index].PIN[pin_index] & ((1 << gpio) << GPIOM_PIN_HIDE_SHIFT)) in gpiom_check_pin_visibility() 96 uint8_t gpio_index, in gpiom_enable_pin_visibility() argument 100 ptr->ASSIGN[gpio_index].PIN[pin_index] = in gpiom_enable_pin_visibility() 101 (ptr->ASSIGN[gpio_index].PIN[pin_index] & ~((1 << gpio) << GPIOM_PIN_HIDE_SHIFT)); in gpiom_enable_pin_visibility() [all …]
|
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/soc/bk7235/hal/ |
D | gpio_hal_debug.c | 23 void gpio_struct_dump(gpio_id_t gpio_index) in gpio_struct_dump() argument 28 SOC_LOGI(" gpio[%d]: %x\n", gpio_index, hw->gpio_num[gpio_index].cfg.v); in gpio_struct_dump() 29 SOC_LOGI(" gpio_input : %x\n", hw->gpio_num[gpio_index].cfg.gpio_input); in gpio_struct_dump() 30 SOC_LOGI(" gpio_output: %x\n", hw->gpio_num[gpio_index].cfg.gpio_output); in gpio_struct_dump() 31 SOC_LOGI(" gpio_input_en: %x\n", hw->gpio_num[gpio_index].cfg.gpio_input_en); in gpio_struct_dump() 32 SOC_LOGI(" gpio_output_en: %x\n", hw->gpio_num[gpio_index].cfg.gpio_output_en); in gpio_struct_dump() 33 SOC_LOGI(" gpio_pull_mode: %x\n", hw->gpio_num[gpio_index].cfg.gpio_pull_mode); in gpio_struct_dump() 34 SOC_LOGI(" gpio_pull_mode_en: %x\n", hw->gpio_num[gpio_index].cfg.gpio_pull_mode_en); in gpio_struct_dump() 35 SOC_LOGI(" gpio_input_monitor: %x\n", hw->gpio_num[gpio_index].cfg.gpio_input_monitor); in gpio_struct_dump() 36 SOC_LOGI(" gpio_capacity: %x\n", hw->gpio_num[gpio_index].cfg.gpio_capacity); in gpio_struct_dump()
|
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/driver/bk7235/ |
D | gpio_driver.c | 99 for(int gpio_index = 0; gpio_index < GPIO_NUM; gpio_index++) in gpio_jtag_sel() local 101 if (jtag_gpio_map[sel_mode].gpio_bits & BIT64(gpio_index)) { in gpio_jtag_sel() 102 GPIO_LOGI("gpio_jtag_sel unmap gpio_index = %d\r\n", gpio_index); in gpio_jtag_sel() 103 gpio_hal_func_unmap(&s_gpio.hal, gpio_index); in gpio_jtag_sel()
|
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/soc/common/hal/ |
D | gpio_hal.c | 207 int gpio_index = 0; in gpio_hal_devs_map() local 216 for(gpio_index = 0; gpio_index < GPIO_NUM; gpio_index++) in gpio_hal_devs_map() 218 if (gpios & BIT64(gpio_index)) { in gpio_hal_devs_map() 219 HAL_LOGD("gpio_index = %d\r\n", gpio_index); in gpio_hal_devs_map() 220 gpio_hal_func_map(hal, gpio_index, devs[dev_id++]); in gpio_hal_devs_map()
|
/device/soc/hpmicro/sdk/hpm_sdk/middleware/hpm_sdmmc/lib/ |
D | hpm_sdmmc_host.c | 335 uint32_t gpio_index = host->host_param.card_detection_gpio_index; in sdmmchost_setup_card_detection() local 337 … gpio_config_pin_interrupt(gpio, gpio_index, pin_index, gpio_interrupt_trigger_edge_falling); in sdmmchost_setup_card_detection() 338 gpio_enable_pin_interrupt(gpio, gpio_index, pin_index); in sdmmchost_setup_card_detection() 372 uint32_t gpio_index = host->host_param.card_detection_gpio_index; in sdmmchost_handle_card_detection() local 374 if (IS_HPM_BIT_SET(gpio->DI[gpio_index].VALUE, pin_index)) { in sdmmchost_handle_card_detection() 384 gpio->IF[gpio_index].SET = HPM_BITSMASK(1, pin_index); in sdmmchost_handle_card_detection()
|
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/soc/common/hal/include/ |
D | gpio_hal.h | 94 void gpio_struct_dump(gpio_id_t gpio_index);
|
/device/soc/hpmicro/sdk/hpm_sdk/boards/hpm6750evk/ |
D | board.c | 842 uint32_t gpio_index = BOARD_APP_SDCARD_CARD_DETECTION_GPIO_INDEX; in board_sd_detect_card() local 844 return ((gpio->DI[gpio_index].VALUE & (1UL << pin_index)) == 0U); in board_sd_detect_card()
|
/device/soc/hpmicro/sdk/hpm_sdk/boards/hpm6750evk2/ |
D | board.c | 857 uint32_t gpio_index = BOARD_APP_SDCARD_CARD_DETECTION_GPIO_INDEX; in board_sd_detect_card() local 859 return ((gpio->DI[gpio_index].VALUE & (1UL << pin_index)) == 0U); in board_sd_detect_card()
|
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/core/ |
D | rtw_debug.c | 5957 u8 gpio_index = pwrpriv->wowlan_gpio_index; in proc_get_wowlan_gpio_info() local 5961 RTW_PRINT_SEL(m, "wakeup_gpio_idx: %d\n", gpio_index); in proc_get_wowlan_gpio_info()
|