drivers/pinmux/stm32/pinmux_stm32.c
/**
 * @brief setup pins according to their assignments
 *
 * @param pinconf  board pin configuration array
 * @param pins     array size
 */
@brief setup pins according to their assignments
@param pinconf  board pin configuration array
@param pins     array size
@brief setup pins according to their assignments @param pinconf board pin configuration array @param pins array size
void stm32_setup_pins(const struct pin_config *pinconf,
		      size_t pins)
{
	struct device *clk;
	int i;
	clk = device_get_binding(STM32_CLOCK_CONTROL_NAME);
	for (i = 0; i < pins; i++) {
		_pinmux_stm32_set(pinconf[i].pin_num,
				  pinconf[i].mode, clk);
	}
}
void stm32_setup_pins ( const struct pin_config * pinconf , size_t pins ) { struct device * clk ; int i ; clk = device_get_binding ( STM32_CLOCK_CONTROL_NAME ) ; for ( i = 0 ; i < pins ; i ++ ) { _pinmux_stm32_set ( pinconf [ i ] . pin_num , pinconf [ i ] . mode , clk ) ; } }
@brief setup pins according to their assignments
 @param pinconf  board pin configuration array
 @param pins     array size
@brief setup pins according to their assignments @param pinconf board pin configuration array @param pins array size