[bsp][stm32[HAL_Drivers]Fix GPIO serial number disorder
Signed-off-by: Willian Chan <chentingwei@rt-thread.com>
This commit is contained in:
parent
694878d4c3
commit
4c7d841046
|
@ -6,6 +6,7 @@
|
||||||
* Change Logs:
|
* Change Logs:
|
||||||
* Date Author Notes
|
* Date Author Notes
|
||||||
* 2018-11-06 balanceTWK first version
|
* 2018-11-06 balanceTWK first version
|
||||||
|
* 2019-04-23 WillianChan Fix GPIO serial number disorder
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <board.h>
|
#include <board.h>
|
||||||
|
@ -153,65 +154,65 @@ static const struct pin_index pins[] =
|
||||||
__STM32_PIN(120, H, 8),
|
__STM32_PIN(120, H, 8),
|
||||||
__STM32_PIN(121, H, 9),
|
__STM32_PIN(121, H, 9),
|
||||||
__STM32_PIN(122, H, 10),
|
__STM32_PIN(122, H, 10),
|
||||||
__STM32_PIN(124, H, 11),
|
__STM32_PIN(123, H, 11),
|
||||||
__STM32_PIN(125, H, 12),
|
__STM32_PIN(124, H, 12),
|
||||||
__STM32_PIN(126, H, 13),
|
__STM32_PIN(125, H, 13),
|
||||||
__STM32_PIN(127, H, 14),
|
__STM32_PIN(126, H, 14),
|
||||||
__STM32_PIN(128, H, 15),
|
__STM32_PIN(127, H, 15),
|
||||||
#endif
|
#endif
|
||||||
#ifdef GPIOI
|
#ifdef GPIOI
|
||||||
__STM32_PIN(129, I, 0),
|
__STM32_PIN(128, I, 0),
|
||||||
__STM32_PIN(130, I, 1),
|
__STM32_PIN(129, I, 1),
|
||||||
__STM32_PIN(131, I, 2),
|
__STM32_PIN(130, I, 2),
|
||||||
__STM32_PIN(132, I, 3),
|
__STM32_PIN(131, I, 3),
|
||||||
__STM32_PIN(133, I, 4),
|
__STM32_PIN(132, I, 4),
|
||||||
__STM32_PIN(134, I, 5),
|
__STM32_PIN(133, I, 5),
|
||||||
__STM32_PIN(135, I, 6),
|
__STM32_PIN(134, I, 6),
|
||||||
__STM32_PIN(136, I, 7),
|
__STM32_PIN(135, I, 7),
|
||||||
__STM32_PIN(137, I, 8),
|
__STM32_PIN(136, I, 8),
|
||||||
__STM32_PIN(138, I, 9),
|
__STM32_PIN(137, I, 9),
|
||||||
__STM32_PIN(139, I, 10),
|
__STM32_PIN(138, I, 10),
|
||||||
__STM32_PIN(140, I, 11),
|
__STM32_PIN(139, I, 11),
|
||||||
__STM32_PIN(141, I, 12),
|
__STM32_PIN(140, I, 12),
|
||||||
__STM32_PIN(142, I, 13),
|
__STM32_PIN(141, I, 13),
|
||||||
__STM32_PIN(143, I, 14),
|
__STM32_PIN(142, I, 14),
|
||||||
__STM32_PIN(144, I, 15),
|
__STM32_PIN(143, I, 15),
|
||||||
#endif
|
#endif
|
||||||
#ifdef GPIOJ
|
#ifdef GPIOJ
|
||||||
__STM32_PIN(145, J, 0),
|
__STM32_PIN(144, J, 0),
|
||||||
__STM32_PIN(146, J, 1),
|
__STM32_PIN(145, J, 1),
|
||||||
__STM32_PIN(147, J, 2),
|
__STM32_PIN(146, J, 2),
|
||||||
__STM32_PIN(148, J, 3),
|
__STM32_PIN(147, J, 3),
|
||||||
__STM32_PIN(149, J, 4),
|
__STM32_PIN(148, J, 4),
|
||||||
__STM32_PIN(150, J, 5),
|
__STM32_PIN(149, J, 5),
|
||||||
__STM32_PIN(151, J, 6),
|
__STM32_PIN(150, J, 6),
|
||||||
__STM32_PIN(152, J, 7),
|
__STM32_PIN(151, J, 7),
|
||||||
__STM32_PIN(153, J, 8),
|
__STM32_PIN(152, J, 8),
|
||||||
__STM32_PIN(154, J, 9),
|
__STM32_PIN(153, J, 9),
|
||||||
__STM32_PIN(155, J, 10),
|
__STM32_PIN(154, J, 10),
|
||||||
__STM32_PIN(156, J, 11),
|
__STM32_PIN(155, J, 11),
|
||||||
__STM32_PIN(157, J, 12),
|
__STM32_PIN(156, J, 12),
|
||||||
__STM32_PIN(158, J, 13),
|
__STM32_PIN(157, J, 13),
|
||||||
__STM32_PIN(159, J, 14),
|
__STM32_PIN(158, J, 14),
|
||||||
__STM32_PIN(160, J, 15),
|
__STM32_PIN(159, J, 15),
|
||||||
#endif
|
#endif
|
||||||
#ifdef GPIOK
|
#ifdef GPIOK
|
||||||
__STM32_PIN(161, K, 0),
|
__STM32_PIN(160, K, 0),
|
||||||
__STM32_PIN(162, K, 1),
|
__STM32_PIN(161, K, 1),
|
||||||
__STM32_PIN(163, K, 2),
|
__STM32_PIN(162, K, 2),
|
||||||
__STM32_PIN(164, K, 3),
|
__STM32_PIN(163, K, 3),
|
||||||
__STM32_PIN(165, K, 4),
|
__STM32_PIN(164, K, 4),
|
||||||
__STM32_PIN(166, K, 5),
|
__STM32_PIN(165, K, 5),
|
||||||
__STM32_PIN(167, K, 6),
|
__STM32_PIN(166, K, 6),
|
||||||
__STM32_PIN(168, K, 7),
|
__STM32_PIN(167, K, 7),
|
||||||
__STM32_PIN(169, K, 8),
|
__STM32_PIN(168, K, 8),
|
||||||
__STM32_PIN(170, K, 9),
|
__STM32_PIN(169, K, 9),
|
||||||
__STM32_PIN(171, K, 10),
|
__STM32_PIN(170, K, 10),
|
||||||
__STM32_PIN(172, K, 11),
|
__STM32_PIN(171, K, 11),
|
||||||
__STM32_PIN(173, K, 12),
|
__STM32_PIN(172, K, 12),
|
||||||
__STM32_PIN(174, K, 13),
|
__STM32_PIN(173, K, 13),
|
||||||
__STM32_PIN(175, K, 14),
|
__STM32_PIN(174, K, 14),
|
||||||
__STM32_PIN(176, K, 15),
|
__STM32_PIN(175, K, 15),
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue