<div dir="ltr"><div>Hi Sebastian,</div><div><br></div><div>How can i specify a define to only be generated for a certain variant and nothing for default?<br><br></div><div>Kind Regards<br></div><div>Robin<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 22 Apr 2021 at 19:56, Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 22/04/2021 19:35, Robin Mueller wrote:<br>
> <br>
<br>
Please change this to (add an option for STM32H7_ETH_GPIOB_PINS)<br>
<br>
#ifdef STM32H7_ETH_GPIOB_PINS<br>
<br>
> +static const stm32h7_gpio_config gpiob = {<br>
> + .regs = GPIOB,<br>
> + .config = {<br>
> + .Pin = GPIO_PIN_13,<br>
> + .Mode = GPIO_MODE_AF_PP,<br>
> + .Pull = GPIO_NOPULL,<br>
> + .Speed = GPIO_SPEED_FREQ_LOW,<br>
> + .Alternate = GPIO_AF11_ETH<br>
> + }<br>
> +};<br>
> +<br>
> void<br>
> HAL_ETH_MspInit(ETH_HandleTypeDef *heth)<br>
> {<br>
> @@ -73,4 +86,7 @@ HAL_ETH_MspInit(ETH_HandleTypeDef *heth)<br>
> stm32h7_gpio_init(&gpiog);<br>
> stm32h7_gpio_init(&gpioc);<br>
> stm32h7_gpio_init(&gpioa);<br>
> +#if RTEMS_BSP == nucleo-h743zi<br>
<br>
#ifdef STM32H7_ETH_GPIOB_PINS<br>
<br>
There should be not checks which use the BSP name.<br>
<br>
> + stm32h7_gpio_init(&gpiob);<br>
> +#endif<br>
> }<br>
<br>
-- <br>
embedded brains GmbH<br>
Herr Sebastian HUBER<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
phone: +49-89-18 94 741 - 16<br>
fax: +49-89-18 94 741 - 08<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRB 157899<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://embedded-brains.de/datenschutzerklaerung/" rel="noreferrer" target="_blank">https://embedded-brains.de/datenschutzerklaerung/</a><br>
<br>
</blockquote></div>