mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
board/same54-xpro: add Ethernet configuration
This commit is contained in:
parent
a1f5b6182d
commit
3937aff923
@ -10,3 +10,8 @@ ifneq (,$(filter mtd,$(USEMODULE)))
|
||||
FEATURES_REQUIRED += periph_spi_on_qspi
|
||||
USEMODULE += mtd_spi_nor
|
||||
endif
|
||||
|
||||
# enables sam0_eth as default network device
|
||||
ifneq (,$(filter netdev_default,$(USEMODULE)))
|
||||
USEMODULE += sam0_eth
|
||||
endif
|
||||
|
@ -3,6 +3,7 @@ CPU_MODEL = same54p20a
|
||||
|
||||
# Put defined MCU peripherals here (in alphabetical order)
|
||||
FEATURES_PROVIDED += periph_dac
|
||||
FEATURES_PROVIDED += periph_eth
|
||||
FEATURES_PROVIDED += periph_i2c
|
||||
FEATURES_PROVIDED += periph_rtc
|
||||
FEATURES_PROVIDED += periph_rtt
|
||||
|
@ -361,6 +361,28 @@ static const adc_conf_chan_t adc_channels[] = {
|
||||
#define DAC_VREF DAC_CTRLB_REFSEL_VREFPU
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Ethernet peripheral configuration
|
||||
* @{
|
||||
*/
|
||||
static const sam0_common_gmac_config_t sam_gmac_config[] = {
|
||||
{
|
||||
.dev = GMAC,
|
||||
.refclk = GPIO_PIN(PA, 14),
|
||||
.txen = GPIO_PIN(PA, 17),
|
||||
.txd0 = GPIO_PIN(PA, 18),
|
||||
.txd1 = GPIO_PIN(PA, 19),
|
||||
.crsdv = GPIO_PIN(PC, 20),
|
||||
.rxd0 = GPIO_PIN(PA, 13),
|
||||
.rxd1 = GPIO_PIN(PA, 12),
|
||||
.rxer = GPIO_PIN(PA, 15),
|
||||
.mdc = GPIO_PIN(PC, 11),
|
||||
.mdio = GPIO_PIN(PC, 12),
|
||||
.rst_pin = GPIO_PIN(PC, 21),
|
||||
.int_pin = GPIO_PIN(PD, 12),
|
||||
}
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user