[PATCH] Correct NUCLEO-H743ZI Ethernet Pins

Robin Müller robin.mueller.m at gmail.com
Fri Apr 23 07:44:13 UTC 2021


Hi Sebastian,

How can i specify a define to only be generated for a certain variant and
nothing for default?

Kind Regards
Robin

On Thu, 22 Apr 2021 at 19:56, Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

>
> 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/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210423/5546099e/attachment-0001.html>


More information about the devel mailing list