Home
last modified time | relevance | path

Searched refs:shift_num (Results 1 – 2 of 2) sorted by relevance

/hal_telink-3.6.0-3.5.0-3.4.0/tlsr9/drivers/B91/ext_driver/
Dext_gpio.c32 unsigned char shift_num, mask_not; in gpio_setup_up_down_resistor() local
35 shift_num = 0; in gpio_setup_up_down_resistor()
39 shift_num = 2; in gpio_setup_up_down_resistor()
43 shift_num = 4; in gpio_setup_up_down_resistor()
47 shift_num = 6; in gpio_setup_up_down_resistor()
58 …nalog_write_reg8(base_ana_reg, (analog_read_reg8(base_ana_reg) & mask_not) | (r_val << shift_num)); in gpio_setup_up_down_resistor()
/hal_telink-3.6.0-3.5.0-3.4.0/tlsr9/drivers/B91/
Dgpio.c355 unsigned char shift_num, mask_not; in gpio_set_up_down_res() local
358 shift_num = 0; in gpio_set_up_down_res()
362 shift_num = 2; in gpio_set_up_down_res()
366 shift_num = 4; in gpio_set_up_down_res()
370 shift_num = 6; in gpio_set_up_down_res()
376 …analog_write_reg8(base_ana_reg, (analog_read_reg8(base_ana_reg) & mask_not) | (r_val << shift_num)… in gpio_set_up_down_res()