summaryrefslogtreecommitdiff
path: root/bsp/stm32/libraries
diff options
context:
space:
mode:
authorWillian Chan <[email protected]>2019-04-23 18:25:51 +0800
committerWillian Chan <[email protected]>2019-04-23 18:27:05 +0800
commit4c7d8410460b88d60faf06bef12408765fda951a (patch)
treeac869c2c4e4c9f3c9a0c938fc882bb929b0a7dd8 /bsp/stm32/libraries
parent694878d4c324aff76bd55564e88333b76401cff6 (diff)
[bsp][stm32[HAL_Drivers]Fix GPIO serial number disorder
Signed-off-by: Willian Chan <[email protected]>
Diffstat (limited to 'bsp/stm32/libraries')
-rw-r--r--bsp/stm32/libraries/HAL_Drivers/drv_gpio.c107
1 files changed, 54 insertions, 53 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_gpio.c b/bsp/stm32/libraries/HAL_Drivers/drv_gpio.c
index 9824d3eb2f..57442f2739 100644
--- a/bsp/stm32/libraries/HAL_Drivers/drv_gpio.c
+++ b/bsp/stm32/libraries/HAL_Drivers/drv_gpio.c
@@ -6,6 +6,7 @@
* Change Logs:
* Date Author Notes
* 2018-11-06 balanceTWK first version
+ * 2019-04-23 WillianChan Fix GPIO serial number disorder
*/
#include <board.h>
@@ -153,65 +154,65 @@ static const struct pin_index pins[] =
__STM32_PIN(120, H, 8),
__STM32_PIN(121, H, 9),
__STM32_PIN(122, H, 10),
- __STM32_PIN(124, H, 11),
- __STM32_PIN(125, H, 12),
- __STM32_PIN(126, H, 13),
- __STM32_PIN(127, H, 14),
- __STM32_PIN(128, H, 15),
+ __STM32_PIN(123, H, 11),
+ __STM32_PIN(124, H, 12),
+ __STM32_PIN(125, H, 13),
+ __STM32_PIN(126, H, 14),
+ __STM32_PIN(127, H, 15),
#endif
#ifdef GPIOI
- __STM32_PIN(129, I, 0),
- __STM32_PIN(130, I, 1),
- __STM32_PIN(131, I, 2),
- __STM32_PIN(132, I, 3),
- __STM32_PIN(133, I, 4),
- __STM32_PIN(134, I, 5),
- __STM32_PIN(135, I, 6),
- __STM32_PIN(136, I, 7),
- __STM32_PIN(137, I, 8),
- __STM32_PIN(138, I, 9),
- __STM32_PIN(139, I, 10),
- __STM32_PIN(140, I, 11),
- __STM32_PIN(141, I, 12),
- __STM32_PIN(142, I, 13),
- __STM32_PIN(143, I, 14),
- __STM32_PIN(144, I, 15),
+ __STM32_PIN(128, I, 0),
+ __STM32_PIN(129, I, 1),
+ __STM32_PIN(130, I, 2),
+ __STM32_PIN(131, I, 3),
+ __STM32_PIN(132, I, 4),
+ __STM32_PIN(133, I, 5),
+ __STM32_PIN(134, I, 6),
+ __STM32_PIN(135, I, 7),
+ __STM32_PIN(136, I, 8),
+ __STM32_PIN(137, I, 9),
+ __STM32_PIN(138, I, 10),
+ __STM32_PIN(139, I, 11),
+ __STM32_PIN(140, I, 12),
+ __STM32_PIN(141, I, 13),
+ __STM32_PIN(142, I, 14),
+ __STM32_PIN(143, I, 15),
#endif
#ifdef GPIOJ
- __STM32_PIN(145, J, 0),
- __STM32_PIN(146, J, 1),
- __STM32_PIN(147, J, 2),
- __STM32_PIN(148, J, 3),
- __STM32_PIN(149, J, 4),
- __STM32_PIN(150, J, 5),
- __STM32_PIN(151, J, 6),
- __STM32_PIN(152, J, 7),
- __STM32_PIN(153, J, 8),
- __STM32_PIN(154, J, 9),
- __STM32_PIN(155, J, 10),
- __STM32_PIN(156, J, 11),
- __STM32_PIN(157, J, 12),
- __STM32_PIN(158, J, 13),
- __STM32_PIN(159, J, 14),
- __STM32_PIN(160, J, 15),
+ __STM32_PIN(144, J, 0),
+ __STM32_PIN(145, J, 1),
+ __STM32_PIN(146, J, 2),
+ __STM32_PIN(147, J, 3),
+ __STM32_PIN(148, J, 4),
+ __STM32_PIN(149, J, 5),
+ __STM32_PIN(150, J, 6),
+ __STM32_PIN(151, J, 7),
+ __STM32_PIN(152, J, 8),
+ __STM32_PIN(153, J, 9),
+ __STM32_PIN(154, J, 10),
+ __STM32_PIN(155, J, 11),
+ __STM32_PIN(156, J, 12),
+ __STM32_PIN(157, J, 13),
+ __STM32_PIN(158, J, 14),
+ __STM32_PIN(159, J, 15),
#endif
#ifdef GPIOK
- __STM32_PIN(161, K, 0),
- __STM32_PIN(162, K, 1),
- __STM32_PIN(163, K, 2),
- __STM32_PIN(164, K, 3),
- __STM32_PIN(165, K, 4),
- __STM32_PIN(166, K, 5),
- __STM32_PIN(167, K, 6),
- __STM32_PIN(168, K, 7),
- __STM32_PIN(169, K, 8),
- __STM32_PIN(170, K, 9),
- __STM32_PIN(171, K, 10),
- __STM32_PIN(172, K, 11),
- __STM32_PIN(173, K, 12),
- __STM32_PIN(174, K, 13),
- __STM32_PIN(175, K, 14),
- __STM32_PIN(176, K, 15),
+ __STM32_PIN(160, K, 0),
+ __STM32_PIN(161, K, 1),
+ __STM32_PIN(162, K, 2),
+ __STM32_PIN(163, K, 3),
+ __STM32_PIN(164, K, 4),
+ __STM32_PIN(165, K, 5),
+ __STM32_PIN(166, K, 6),
+ __STM32_PIN(167, K, 7),
+ __STM32_PIN(168, K, 8),
+ __STM32_PIN(169, K, 9),
+ __STM32_PIN(170, K, 10),
+ __STM32_PIN(171, K, 11),
+ __STM32_PIN(172, K, 12),
+ __STM32_PIN(173, K, 13),
+ __STM32_PIN(174, K, 14),
+ __STM32_PIN(175, K, 15),
#endif
};