Changeset b24e8142 in rtems


Ignore:
Timestamp:
07/16/21 12:32:03 (12 months ago)
Author:
Robin Mueller <robin.mueller.m@…>
Branches:
master
Children:
5cc1695
Parents:
1577a48
git-author:
Robin Mueller <robin.mueller.m@…> (07/16/21 12:32:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/20/21 05:37:42)
Message:

STM32H7 ethernet pin corrections

These patches were submitted a few months ago, but it was found out
that the default-by-family: [] were missing in the GPIO .yml lines.
This was fixed in this patch.

This patch accounts for different pins for the ETH peripheral
on STM32H7 devices. For example, the Nucleo H743ZI has slightly
different pins than other STM32H7 boards.

Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/stm32h7/start/stm32h7-hal-eth.c

    r1577a48 rb24e8142  
    3232#include <stm32h7/hal.h>
    3333
     34#include <bspopts.h>
     35
    3436static const stm32h7_gpio_config gpiog = {
    3537  .regs = GPIOG,
    3638  .config = {
    37     .Pin = GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_13,
     39    .Pin = STM32H7_ETH_GPIOG_PINS,
    3840    .Mode = GPIO_MODE_AF_PP,
    3941    .Pull = GPIO_NOPULL,
     
    6567};
    6668
     69#ifdef STM32H7_ETH_GPIOB_PINS
     70
     71static const stm32h7_gpio_config gpiob = {
     72  .regs = GPIOB,
     73  .config = {
     74    .Pin = STM32H7_ETH_GPIOB_PINS,
     75    .Mode = GPIO_MODE_AF_PP,
     76    .Pull = GPIO_NOPULL,
     77    .Speed = GPIO_SPEED_FREQ_LOW,
     78    .Alternate = GPIO_AF11_ETH
     79  }
     80};
     81
     82#endif
     83
    6784void
    6885HAL_ETH_MspInit(ETH_HandleTypeDef *heth)
     
    7491  stm32h7_gpio_init(&gpioc);
    7592  stm32h7_gpio_init(&gpioa);
     93#ifdef STM32H7_ETH_GPIOB_PINS
     94  stm32h7_gpio_init(&gpiob);
     95#endif
    7696}
  • spec/build/bsps/arm/stm32h7/grp.yml

    r1577a48 rb24e8142  
    8585  uid: optvariant
    8686- role: build-dependency
     87  uid: optethgpiogregs
     88- role: build-dependency
     89  uid: optethgpiobregs
     90- role: build-dependency
    8791  uid: ../../optconsolebaud
    8892- role: build-dependency
Note: See TracChangeset for help on using the changeset viewer.