Home
last modified time | relevance | path

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

/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/
Dat_io.c58 hi_io_name io_num; in at_setup_iosetmode_cmd() local
75 io_num = (hi_io_name)atoi(argv[0]); in at_setup_iosetmode_cmd()
76 if (io_num > HI_IO_NAME_GPIO_14) { in at_setup_iosetmode_cmd()
96 ret = hi_io_set_func(io_num, io_mode); in at_setup_iosetmode_cmd()
101 ret = hi_io_set_pull(io_num, io_pull_stat); in at_setup_iosetmode_cmd()
105 ret = hi_io_set_driver_strength(io_num, io_power_level); in at_setup_iosetmode_cmd()
116 hi_io_name io_num; in at_setup_iogetmode_cmd() local
130 io_num = (hi_io_name)atoi(argv[0]); in at_setup_iogetmode_cmd()
131 if (io_num > HI_IO_NAME_GPIO_14) { in at_setup_iogetmode_cmd()
135 ret = hi_io_get_func(io_num, &io_mode); in at_setup_iogetmode_cmd()
[all …]
Dat_lowpower.c127 hi_u32 check_io_status(hi_gpio_idx io_num) in check_io_status() argument
132 hi_io_get_func((hi_io_name)io_num, &io_current_func); in check_io_status()
133 if (io_num < HI_GPIO_IDX_13) { in check_io_status()
143 gpio_get_dir(io_num, &gpio_dir); in check_io_status()
151 hi_u32 wake_gpio_init(hi_gpio_idx io_num) in wake_gpio_init() argument
154 ret = hi_io_set_func((hi_io_name)io_num, g_io_gpio_mode[io_num]); in wake_gpio_init()
164 ret = hi_gpio_set_dir(io_num, HI_GPIO_DIR_IN); in wake_gpio_init()
177 hi_gpio_idx io_num; in at_setup_wake_gpio() local
196 io_num = (hi_gpio_idx)atoi(argv[0]); in at_setup_wake_gpio()
197 if (io_num > HI_GPIO_IDX_14) { in at_setup_wake_gpio()
[all …]
/device/soc/esp/esp32/components/driver/
Dgpio.c319 uint32_t io_num = 0; in gpio_config() local
339 io_reg = GPIO_PIN_MUX_REG[io_num]; in gpio_config()
341 if (((gpio_pin_mask >> io_num) & BIT(0))) { in gpio_config()
345 if (rtc_gpio_is_valid_gpio(io_num)) { in gpio_config()
346 rtc_gpio_deinit(io_num); in gpio_config()
352 gpio_input_enable(io_num); in gpio_config()
354 gpio_input_disable(io_num); in gpio_config()
359 gpio_od_enable(io_num); in gpio_config()
361 gpio_od_disable(io_num); in gpio_config()
366 gpio_output_enable(io_num); in gpio_config()
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/uart/
Dsunxi-uart.h31 unsigned int io_num; member
Dsunxi-uart.c861 if (sw_uport->pdata->io_num == 2) in wait_for_xmitr()
1608 sw_uport->pdata->io_num, in sunxi_uart_dev_info_show()
2058 ret = of_property_read_u32(np, uart_para, &pdata->io_num); in sw_uart_probe()
/device/soc/esp/esp32/components/soc/esp32/include/soc/
Dgpio_reg.h282 #define GPIO_REG(io_num) (GPIO_PIN0_REG + (io_num)*0x4) argument