mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-09 14:28:37 +00:00
[feat][emac] update hal emac phy config
This commit is contained in:
parent
078afbd359
commit
41def8e82e
1 changed files with 11 additions and 2 deletions
|
@ -40,8 +40,17 @@ typedef struct
|
|||
{
|
||||
uint8_t auto_negotiation; /*!< Speed and mode auto negotiation */
|
||||
uint8_t full_duplex; /*!< Duplex mode */
|
||||
#define PHY_STATE_DOWN (0) /* PHY is not usable */
|
||||
#define PHY_STATE_READY (1) /* PHY is OK, wait for controller */
|
||||
#define PHY_STATE_UP (2) /* Network is ready for TX/RX */
|
||||
#define PHY_STATE_RUNNING (3) /* working */
|
||||
#define PHY_STATE_NOLINK (4) /* no cable connected */
|
||||
#define PHY_STATE_STOPPED (5) /* PHY has been stopped */
|
||||
#define PHY_STATE_TESTING (6) /* in test mode */
|
||||
uint8_t phy_state; /*!< down,ready,up,running,nolink,halted */
|
||||
uint16_t speed; /*!< Speed mode */
|
||||
uint16_t phy_address; /*!< PHY address */
|
||||
uint32_t phy_id; /*!< PHY OUI */
|
||||
} emac_phy_cfg_t;
|
||||
|
||||
#define EMAC_TX_COMMON_FLAGS (EMAC_BD_FIELD_MSK(TX_RD) | \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue