boards/nucleo-{f207zg,f746zg,f767zi}: periph_eth
Use shared MII register definitions from mii.h rather than own definitions.
This commit is contained in:
parent
6294382627
commit
bedddce263
@ -35,6 +35,7 @@
|
|||||||
#include "f2f4f7/cfg_clock_default_120.h"
|
#include "f2f4f7/cfg_clock_default_120.h"
|
||||||
#include "cfg_i2c1_pb8_pb9.h"
|
#include "cfg_i2c1_pb8_pb9.h"
|
||||||
#include "cfg_usb_otg_fs.h"
|
#include "cfg_usb_otg_fs.h"
|
||||||
|
#include "mii.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -248,7 +249,7 @@ static const adc_conf_t adc_config[] = {
|
|||||||
static const eth_conf_t eth_config = {
|
static const eth_conf_t eth_config = {
|
||||||
.mode = RMII,
|
.mode = RMII,
|
||||||
.addr = { 0 },
|
.addr = { 0 },
|
||||||
.speed = ETH_SPEED_100TX_FD,
|
.speed = MII_BMCR_SPEED_100 | MII_BMCR_FULL_DPLX,
|
||||||
.dma = 6,
|
.dma = 6,
|
||||||
.dma_chan = 8,
|
.dma_chan = 8,
|
||||||
.phy_addr = 0x00,
|
.phy_addr = 0x00,
|
||||||
|
|||||||
@ -35,6 +35,7 @@
|
|||||||
#include "cfg_rtt_default.h"
|
#include "cfg_rtt_default.h"
|
||||||
#include "cfg_timer_tim2.h"
|
#include "cfg_timer_tim2.h"
|
||||||
#include "cfg_usb_otg_fs.h"
|
#include "cfg_usb_otg_fs.h"
|
||||||
|
#include "mii.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -219,7 +220,7 @@ static const spi_conf_t spi_config[] = {
|
|||||||
static const eth_conf_t eth_config = {
|
static const eth_conf_t eth_config = {
|
||||||
.mode = RMII,
|
.mode = RMII,
|
||||||
.addr = { 0 },
|
.addr = { 0 },
|
||||||
.speed = ETH_SPEED_100TX_FD,
|
.speed = MII_BMCR_SPEED_100 | MII_BMCR_FULL_DPLX,
|
||||||
.dma = 7,
|
.dma = 7,
|
||||||
.dma_chan = 8,
|
.dma_chan = 8,
|
||||||
.phy_addr = 0x00,
|
.phy_addr = 0x00,
|
||||||
|
|||||||
@ -35,6 +35,7 @@
|
|||||||
#include "cfg_rtt_default.h"
|
#include "cfg_rtt_default.h"
|
||||||
#include "cfg_timer_tim2.h"
|
#include "cfg_timer_tim2.h"
|
||||||
#include "cfg_usb_otg_fs.h"
|
#include "cfg_usb_otg_fs.h"
|
||||||
|
#include "mii.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -167,7 +168,7 @@ static const spi_conf_t spi_config[] = {
|
|||||||
static const eth_conf_t eth_config = {
|
static const eth_conf_t eth_config = {
|
||||||
.mode = RMII,
|
.mode = RMII,
|
||||||
.addr = { 0 },
|
.addr = { 0 },
|
||||||
.speed = ETH_SPEED_100TX_FD,
|
.speed = MII_BMCR_SPEED_100 | MII_BMCR_FULL_DPLX,
|
||||||
.dma = 3,
|
.dma = 3,
|
||||||
.dma_chan = 8,
|
.dma_chan = 8,
|
||||||
.phy_addr = 0x00,
|
.phy_addr = 0x00,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user