Searched refs:shift_num (Results 1 – 2 of 2) sorted by relevance
32 unsigned char shift_num, mask_not; in gpio_setup_up_down_resistor() local35 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()
355 unsigned char shift_num, mask_not; in gpio_set_up_down_res() local358 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()