stm32/boards: Add missing LPUART macros for H7 HAL.

The STM32H7xx HAL LPUART AF macros are missing the number, this HAL is the
only one that's inconsistent in the way it defines LPUART AF macros, so we
only need to define them for H7.
pull/10118/head
iabdalkader 2022-11-28 12:21:27 +01:00 zatwierdzone przez Damien George
rodzic 771c16f3d9
commit fb7d211530
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -101,4 +101,10 @@
// HAL parameter assertions are disabled
#define assert_param(expr) ((void)0)
// The STM32H7xx HAL defines LPUART1 AF macros without numbers.
#ifndef GPIO_AF3_LPUART1
#define GPIO_AF3_LPUART1 GPIO_AF3_LPUART
#define GPIO_AF8_LPUART1 GPIO_AF8_LPUART
#endif
#endif // MICROPY_INCLUDED_STM32H7XX_HAL_CONF_BASE_H