drivers/pinmux/stm32/pinmux_stm32.c
/**
 * @brief pin setup
 *
 * @param pin  STM32PIN() encoded pin ID
 * @param func SoC specific function assignment
 * @param clk  optional clock device
 *
 * @return 0 on success, error otherwise
 */
@brief pin setup
@param pin  STM32PIN() encoded pin ID
@param func SoC specific function assignment
@param clk  optional clock device

@return 0 on success, error otherwise
@brief pin setup @param pin STM32PIN () encoded pin ID @param func SoC specific function assignment @param clk optional clock device @return 0 on success error otherwise
int _pinmux_stm32_set(u32_t pin, u32_t func,
				struct device *clk)
{
	int config;
	if (enable_port(STM32_PORT(pin), clk)) {
		return -EIO;
	}
	config = stm32_get_pin_config(pin, func);
	return stm32_pin_configure(pin, config, func);
}
int _pinmux_stm32_set ( u32_t pin , u32_t func , struct device * clk ) { int config ; if ( enable_port ( STM32_PORT ( pin ) , clk ) ) { return - EIO ; } config = stm32_get_pin_config ( pin , func ) ; return stm32_pin_configure ( pin , config , func ) ; }
@brief pin setup
 @param pin  STM32PIN() encoded pin ID
 @param func SoC specific function assignment
 @param clk  optional clock device
@brief pin setup @param pin STM32PIN () encoded pin ID @param func SoC specific function assignment @param clk optional clock device
/* make sure to enable port clock first */ /* determine config for alternate function */