Choco OS  V.0.16.9.0
Join to the chocolate world
oc_netif_cfg.c
1 
27 #include <oc_cfg.h>
28 #include <oc_driverman.h>
29 
35 #define _________________________________________DRIVER_CONFIGURATIONS_SECTION______________________________________________________________
36 
37 #ifdef oC_ETH_LLD_AVAILABLE
38 static const oC_ETH_Config_t STM32F7Discovery_EthernetConfig = {
39  .PhyChipInfo = &oC_ETH_PhyChipInfo_LAN8742A ,
40  .PhyAddress = 0x00 ,
41  .MacAddress = { 0x24 , 0x0A , 0x64 , 0xe9 , 0xAA , 0xAA } ,
42  .LLD = {
43  .AutoGeneratePad = true,
44  .AutoCalculateCrc = true,
45  .PhyAddress = 0x00,
46  .BaudRate = MBd(100),
47  .OperationMode = oC_ETH_LLD_OperationMode_FullDuplex,
48  .Rmii = {
49  .Mdc = oC_Pin_RMII_MDC,
50  .Mdio = oC_Pin_RMII_MDIO,
51  .RefClk = oC_Pin_RMII_REF_CLK,
52  .RcsDv = oC_Pin_RMII_RCS_DV,
53  .RxD0 = oC_Pin_RMII_RXD0,
54  .RxD1 = oC_Pin_RMII_RXD1,
55  .TxEn = oC_Pin_RMII_TX_EN,
56  .TxD0 = oC_Pin_RMII_TXD0,
57  .TxD1 = oC_Pin_RMII_TXD1,
58  .RxEr = oC_Pin_RMII_RXER,
59  },
60 
61  },
62 };
63 #endif
64 
65 #undef _________________________________________DRIVER_CONFIGURATIONS_SECTION______________________________________________________________
66 
67 //==========================================================================================================================================
79 //==========================================================================================================================================
80 #define CFG_NETIF_LIST(ADD_NET,DONT_ADD_NET) \
81  ADD_NET( "ethernet" , AUTO , AUTO , ETH , STM32F7Discovery_EthernetConfig ) \
82 
83 //==========================================================================================================================================
97 //==========================================================================================================================================
98 #define CFG_ROUTING_TABLE(ADD_ENTRY,DONT_ADD_ENTRY) \
99  ADD_ENTRY( "0.0.0.0" , "0.0.0.0" , 1 , "ethernet" )\
100 
ETH driver configuration structure.
Definition: oc_eth.h:122
Helper macros for configurations files.
oC_ETH_LLD_PHY_ChipInfo_t LLD
Informations about the chip required by the LLD layer.
Definition: oc_eth.h:109
const oC_ETH_PhyChipInfo_t * PhyChipInfo
Pointer to the PHY chip definition (you can find it in the oc_eth_chips.h file)
Definition: oc_eth.h:124
The file with drivers manager interface.