[PATCH] Correct NUCLEO-H743ZI Ethernet Pins

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Apr 22 17:56:07 UTC 2021


On 22/04/2021 19:35, Robin Mueller wrote:
>   

Please change this to (add an option for STM32H7_ETH_GPIOB_PINS)

#ifdef STM32H7_ETH_GPIOB_PINS

> +static const stm32h7_gpio_config gpiob = {
> +  .regs = GPIOB,
> +  .config = {
> +    .Pin = GPIO_PIN_13,
> +    .Mode = GPIO_MODE_AF_PP,
> +    .Pull = GPIO_NOPULL,
> +    .Speed = GPIO_SPEED_FREQ_LOW,
> +    .Alternate = GPIO_AF11_ETH
> +  }
> +};
> +
>   void
>   HAL_ETH_MspInit(ETH_HandleTypeDef *heth)
>   {
> @@ -73,4 +86,7 @@ HAL_ETH_MspInit(ETH_HandleTypeDef *heth)
>     stm32h7_gpio_init(&gpiog);
>     stm32h7_gpio_init(&gpioc);
>     stm32h7_gpio_init(&gpioa);
> +#if RTEMS_BSP == nucleo-h743zi

#ifdef STM32H7_ETH_GPIOB_PINS

There should be not checks which use the BSP name.

> +  stm32h7_gpio_init(&gpiob);
> +#endif
>   }

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/



More information about the devel mailing list