feat(esp_eth): a new folder structure of the driver and other improvements
Fixed memory leak in emac_esp_new_dma function. Polished ESP EMAC cache management. Added emac_periph definitions based on SoC features and improved(generalized) ESP EMAC GPIO initialization. Added ESP EMAC GPIO reservation. Added check for frame error condition indicated by EMAC DMA and created a target test.
This commit is contained in:
@@ -16,7 +16,7 @@ extern "C" {
|
||||
#define ESP_ETH_PHY_ADDR_AUTO (-1)
|
||||
|
||||
/**
|
||||
* @brief Auto-negotiation controll commands
|
||||
* @brief Auto-negotiation control commands
|
||||
*
|
||||
*/
|
||||
typedef enum {
|
||||
@@ -253,7 +253,7 @@ struct esp_eth_phy_s {
|
||||
* - ESP_FAIL: process io command failed because some other error occurred
|
||||
* - ESP_ERR_NOT_SUPPORTED: requested feature is not supported
|
||||
*/
|
||||
esp_err_t (*custom_ioctl)(esp_eth_phy_t *phy, uint32_t cmd, void *data);
|
||||
esp_err_t (*custom_ioctl)(esp_eth_phy_t *phy, int cmd, void *data);
|
||||
|
||||
/**
|
||||
* @brief Free memory of Ethernet PHY instance
|
||||
|
||||
Reference in New Issue
Block a user