mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 00:51:42 +01:00 
			
		
		
		
	change(hal): rewrite gpio_ll_set_iomux_pin_ctrl api
This commit is contained in:
		@@ -534,6 +534,18 @@ static inline void gpio_ll_iomux_out(gpio_dev_t *hw, uint8_t gpio_num, int func,
 | 
			
		||||
    gpio_ll_func_sel(hw, gpio_num, func);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief  Control the pin in the IOMUX
 | 
			
		||||
 *
 | 
			
		||||
 * @param  bmap   write mask of control value
 | 
			
		||||
 * @param  val    Control value
 | 
			
		||||
 * @param  shift  write mask shift of control value
 | 
			
		||||
 */
 | 
			
		||||
static inline __attribute__((always_inline)) void gpio_ll_set_pin_ctrl(uint32_t val, uint32_t bmap, uint32_t shift)
 | 
			
		||||
{
 | 
			
		||||
    SET_PERI_REG_BITS(PIN_CTRL, bmap, val, shift);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief Set clock source of IO MUX module
 | 
			
		||||
 *
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user