File tree Expand file tree Collapse file tree 2 files changed +0
-69
lines changed Expand file tree Collapse file tree 2 files changed +0
-69
lines changed Original file line number Diff line number Diff line change @@ -390,42 +390,3 @@ int stm32_dt_pinctrl_remap(const struct soc_gpio_pinctrl *pinctrl,
390390 return 0 ;
391391}
392392#endif /* DT_HAS_COMPAT_STATUS_OKAY(st_stm32f1_pinctrl) */
393-
394-
395- /**
396- * @brief pin setup
397- *
398- * @param pin STM32PIN() encoded pin ID
399- * @param func SoC specific function assignment
400- * @param clk optional clock device
401- *
402- * @return 0 on success, error otherwise
403- */
404- int z_pinmux_stm32_set (uint32_t pin , uint32_t func )
405- {
406- const struct device * port_device = gpio_ports [STM32_PORT (pin )];
407-
408- /* make sure to enable port clock first */
409- if (gpio_stm32_clock_request (port_device , true)) {
410- return - EIO ;
411- }
412-
413- return stm32_pin_configure (pin , func , func & STM32_AFR_MASK );
414- }
415-
416- /**
417- * @brief setup pins according to their assignments
418- *
419- * @param pinconf board pin configuration array
420- * @param pins array size
421- */
422- void stm32_setup_pins (const struct pin_config * pinconf ,
423- size_t pins )
424- {
425- int i ;
426-
427- for (i = 0 ; i < pins ; i ++ ) {
428- z_pinmux_stm32_set (pinconf [i ].pin_num ,
429- pinconf [i ].mode );
430- }
431- }
Original file line number Diff line number Diff line change 2424extern "C" {
2525#endif
2626
27- struct pin_config {
28- uint8_t pin_num ;
29- uint32_t mode ;
30- };
31-
3227/**
3328 * @brief structure to convey pinctrl information for stm32 soc
3429 * value
@@ -120,31 +115,6 @@ struct stm32_pinmux_conf {
120115 */
121116clock_control_subsys_t stm32_get_port_clock (int port );
122117
123- /**
124- * @brief helper for configuration of IO pin
125- *
126- * @param pin IO pin, STM32PIN() encoded
127- * @param func IO function encoded
128- * @param clk clock control device, for enabling/disabling clock gate
129- * for the port
130- */
131- int z_pinmux_stm32_set (uint32_t pin , uint32_t func );
132-
133- /**
134- * @brief helper for obtaining pin configuration for the board
135- *
136- * @param[out] pins set to the number of pins in the array
137- *
138- * Obtain pin assignment/configuration for current board. This call
139- * needs to be implemented at the board integration level. After
140- * restart all pins are already configured as GPIO and can be skipped
141- * in the configuration array. Pin numbers in @pin_num field are
142- * STM32PIN() encoded.
143- *
144- */
145- void stm32_setup_pins (const struct pin_config * pinconf ,
146- size_t pins );
147-
148118/**
149119 * @brief helper for converting dt stm32 pinctrl format to existing pin config
150120 * format
You can’t perform that action at this time.
0 commit comments