summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Vaussard <florian.vaussard@heig-vd.ch>2017-03-15 11:38:51 +0100
committerKumar Gala <kumar.gala@linaro.org>2017-04-28 15:26:39 -0500
commit392803e4ccf581a68b7536d78e013fc8f7b764fb (patch)
treea444635bc1676f747f10322b2f9077bb30e83323
parent45dde7eb3f71c76a116aa92c043d68e27f074d21 (diff)
pinmux: stm32f4: Clean-up pinmux header
Clean-up the pinmux header as a preparatory work before adding more pinmuxes. This is achieved by the following two actions: - Reorder the defines by increasing GPIO order to make it easier to add more pinmux over time while avoiding a huge mess - Use tabs to align Change-Id: I07d9ae28f61287748d33dcf638dcbf2e6865517b Signed-off-by: Florian Vaussard <florian.vaussard@heig-vd.ch>
-rw-r--r--drivers/pinmux/stm32/pinmux_stm32f4.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/pinmux/stm32/pinmux_stm32f4.h b/drivers/pinmux/stm32/pinmux_stm32f4.h
index 02403bc87..436c86567 100644
--- a/drivers/pinmux/stm32/pinmux_stm32f4.h
+++ b/drivers/pinmux/stm32/pinmux_stm32f4.h
@@ -11,15 +11,15 @@
* @file Header for STM32F4 pin multiplexing helper
*/
-#define STM32F4_PINMUX_FUNC_PA9_USART1_TX STM32_PINMUX_FUNC_ALT_7
-#define STM32F4_PINMUX_FUNC_PA10_USART1_RX STM32_PINMUX_FUNC_ALT_7
+#define STM32F4_PINMUX_FUNC_PA0_PWM2_CH1 STM32_PINMUX_FUNC_ALT_1
-#define STM32F4_PINMUX_FUNC_PB6_USART1_TX STM32_PINMUX_FUNC_ALT_7
-#define STM32F4_PINMUX_FUNC_PB7_USART1_RX STM32_PINMUX_FUNC_ALT_7
+#define STM32F4_PINMUX_FUNC_PA2_USART2_TX STM32_PINMUX_FUNC_ALT_7
+#define STM32F4_PINMUX_FUNC_PA3_USART2_RX STM32_PINMUX_FUNC_ALT_7
-#define STM32F4_PINMUX_FUNC_PA2_USART2_TX STM32_PINMUX_FUNC_ALT_7
-#define STM32F4_PINMUX_FUNC_PA3_USART2_RX STM32_PINMUX_FUNC_ALT_7
+#define STM32F4_PINMUX_FUNC_PA9_USART1_TX STM32_PINMUX_FUNC_ALT_7
+#define STM32F4_PINMUX_FUNC_PA10_USART1_RX STM32_PINMUX_FUNC_ALT_7
-#define STM32F4_PINMUX_FUNC_PA0_PWM2_CH1 STM32_PINMUX_FUNC_ALT_1
+#define STM32F4_PINMUX_FUNC_PB6_USART1_TX STM32_PINMUX_FUNC_ALT_7
+#define STM32F4_PINMUX_FUNC_PB7_USART1_RX STM32_PINMUX_FUNC_ALT_7
#endif /* _STM32F4_PINMUX_H_ */