/hal_espressif-3.5.0/examples/ethernet/iperf/main/ |
D | cmd_ethernet.c | 217 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); in register_ethernet() local 222 mac_config.smi_mdc_gpio_num = CONFIG_EXAMPLE_ETH_MDC_GPIO; in register_ethernet() 223 mac_config.smi_mdio_gpio_num = CONFIG_EXAMPLE_ETH_MDIO_GPIO; in register_ethernet() 224 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); in register_ethernet() 261 esp_eth_mac_t *mac = esp_eth_mac_new_ksz8851snl(&ksz8851snl_config, &mac_config); in register_ethernet() 276 esp_eth_mac_t *mac = esp_eth_mac_new_dm9051(&dm9051_config, &mac_config); in register_ethernet() 291 esp_eth_mac_t *mac = esp_eth_mac_new_w5500(&w5500_config, &mac_config); in register_ethernet() 309 mac_config.smi_mdc_gpio_num = -1; // ENC28J60 doesn't have SMI interface in register_ethernet() 310 mac_config.smi_mdio_gpio_num = -1; in register_ethernet() 311 esp_eth_mac_t *mac = esp_eth_mac_new_enc28j60(&enc28j60_config, &mac_config); in register_ethernet()
|
/hal_espressif-3.5.0/components/esp_eth/test/ |
D | test_emac.c | 99 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); 100 mac_config.flags = ETH_MAC_FLAG_PIN_TO_CORE; // pin to core 101 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); 133 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); 134 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); 173 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); 174 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); 220 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); 221 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); 318 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); [all …]
|
/hal_espressif-3.5.0/examples/ethernet/eth2ap/main/ |
D | ethernet_example_main.c | 156 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); in initialize_ethernet() local 161 mac_config.smi_mdc_gpio_num = CONFIG_EXAMPLE_ETH_MDC_GPIO; in initialize_ethernet() 162 mac_config.smi_mdio_gpio_num = CONFIG_EXAMPLE_ETH_MDIO_GPIO; in initialize_ethernet() 163 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); in initialize_ethernet() 200 esp_eth_mac_t *mac = esp_eth_mac_new_ksz8851snl(&ksz8851snl_config, &mac_config); in initialize_ethernet() 215 esp_eth_mac_t *mac = esp_eth_mac_new_dm9051(&dm9051_config, &mac_config); in initialize_ethernet() 230 esp_eth_mac_t *mac = esp_eth_mac_new_w5500(&w5500_config, &mac_config); in initialize_ethernet()
|
/hal_espressif-3.5.0/components/esp_eth/test_apps/main/ |
D | esp_eth_test.c | 54 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); // apply default MAC configuration 55 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); // create MAC instance 105 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); // apply default MAC configuration 106 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); // create MAC instance 158 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); // apply default MAC configuration 159 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); // create MAC instance 230 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); // apply default MAC configuration 231 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); // create MAC instance 324 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); // apply default MAC configuration 325 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); // create MAC instance
|
/hal_espressif-3.5.0/examples/network/simple_sniffer/main/ |
D | simple_sniffer_example_main.c | 133 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); in initialize_eth() local 138 mac_config.smi_mdc_gpio_num = CONFIG_SNIFFER_ETH_MDC_GPIO; in initialize_eth() 139 mac_config.smi_mdio_gpio_num = CONFIG_SNIFFER_ETH_MDIO_GPIO; in initialize_eth() 140 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); in initialize_eth() 177 esp_eth_mac_t *mac = esp_eth_mac_new_ksz8851snl(&ksz8851snl_config, &mac_config); in initialize_eth() 192 esp_eth_mac_t *mac = esp_eth_mac_new_dm9051(&dm9051_config, &mac_config); in initialize_eth() 207 esp_eth_mac_t *mac = esp_eth_mac_new_w5500(&w5500_config, &mac_config); in initialize_eth()
|
/hal_espressif-3.5.0/examples/ethernet/enc28j60/main/ |
D | enc28j60_example_main.c | 103 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); in app_main() local 104 mac_config.smi_mdc_gpio_num = -1; // ENC28J60 doesn't have SMI interface in app_main() 105 mac_config.smi_mdio_gpio_num = -1; in app_main() 106 esp_eth_mac_t *mac = esp_eth_mac_new_enc28j60(&enc28j60_config, &mac_config); in app_main()
|
/hal_espressif-3.5.0/examples/common_components/protocol_examples_common/ |
D | connect.c | 377 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); in eth_start() local 382 mac_config.smi_mdc_gpio_num = CONFIG_EXAMPLE_ETH_MDC_GPIO; in eth_start() 383 mac_config.smi_mdio_gpio_num = CONFIG_EXAMPLE_ETH_MDIO_GPIO; in eth_start() 384 s_mac = esp_eth_mac_new_esp32(&mac_config); in eth_start() 418 s_mac = esp_eth_mac_new_dm9051(&dm9051_config, &mac_config); in eth_start() 433 s_mac = esp_eth_mac_new_w5500(&w5500_config, &mac_config); in eth_start() 438 s_mac = esp_eth_mac_new_openeth(&mac_config); in eth_start()
|
/hal_espressif-3.5.0/components/esp_eth/include/ |
D | esp_eth_mac.h | 453 …p_eth_mac_new_dm9051(const eth_dm9051_config_t *dm9051_config, const eth_mac_config_t *mac_config); 486 …*esp_eth_mac_new_w5500(const eth_w5500_config_t *w5500_config, const eth_mac_config_t *mac_config); 519 …w_ksz8851snl(const eth_ksz8851snl_config_t *ksz8851snl_config, const eth_mac_config_t *mac_config);
|
/hal_espressif-3.5.0/examples/ethernet/basic/main/ |
D | ethernet_example_main.c | 99 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); in app_main() local 104 mac_config.smi_mdc_gpio_num = CONFIG_EXAMPLE_ETH_MDC_GPIO; in app_main() 105 mac_config.smi_mdio_gpio_num = CONFIG_EXAMPLE_ETH_MDIO_GPIO; in app_main() 106 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); in app_main()
|
/hal_espressif-3.5.0/components/esp_eth/src/ |
D | esp_eth_mac_w5500.c | 635 … *esp_eth_mac_new_w5500(const eth_w5500_config_t *w5500_config, const eth_mac_config_t *mac_config) in esp_eth_mac_new_w5500() argument 639 ESP_GOTO_ON_FALSE(w5500_config && mac_config, NULL, err, TAG, "invalid argument"); in esp_eth_mac_new_w5500() 645 emac->sw_reset_timeout_ms = mac_config->sw_reset_timeout_ms; in esp_eth_mac_new_w5500() 671 if (mac_config->flags & ETH_MAC_FLAG_PIN_TO_CORE) { in esp_eth_mac_new_w5500() 674 …BaseType_t xReturned = xTaskCreatePinnedToCore(emac_w5500_task, "w5500_tsk", mac_config->rx_task_s… in esp_eth_mac_new_w5500() 675 mac_config->rx_task_prio, &emac->rx_task_hdl, core_num); in esp_eth_mac_new_w5500()
|
D | esp_eth_mac_dm9051.c | 747 …sp_eth_mac_new_dm9051(const eth_dm9051_config_t *dm9051_config, const eth_mac_config_t *mac_config) in esp_eth_mac_new_dm9051() argument 752 ESP_GOTO_ON_FALSE(mac_config, NULL, err, TAG, "can't set mac config to null"); in esp_eth_mac_new_dm9051() 758 emac->sw_reset_timeout_ms = mac_config->sw_reset_timeout_ms; in esp_eth_mac_new_dm9051() 784 if (mac_config->flags & ETH_MAC_FLAG_PIN_TO_CORE) { in esp_eth_mac_new_dm9051() 787 …BaseType_t xReturned = xTaskCreatePinnedToCore(emac_dm9051_task, "dm9051_tsk", mac_config->rx_task… in esp_eth_mac_new_dm9051() 788 mac_config->rx_task_prio, &emac->rx_task_hdl, core_num); in esp_eth_mac_new_dm9051()
|
D | esp_eth_mac_ksz8851snl.c | 658 const eth_mac_config_t *mac_config) in esp_eth_mac_new_ksz8851snl() argument 663 ESP_GOTO_ON_FALSE(ksz8851snl_config && mac_config, NULL, err, TAG, "arguments can not be null"); in esp_eth_mac_new_ksz8851snl() 669 emac->sw_reset_timeout_ms = mac_config->sw_reset_timeout_ms; in esp_eth_mac_new_ksz8851snl() 700 if (mac_config->flags & ETH_MAC_FLAG_PIN_TO_CORE) { in esp_eth_mac_new_ksz8851snl() 703 …rned = xTaskCreatePinnedToCore(emac_ksz8851snl_task, "ksz8851snl_tsk", mac_config->rx_task_stack_s… in esp_eth_mac_new_ksz8851snl() 704 emac, mac_config->rx_task_prio, &emac->rx_task_hdl, core_num); in esp_eth_mac_new_ksz8851snl()
|
/hal_espressif-3.5.0/docs/en/api-reference/network/ |
D | esp_eth.rst | 200 … eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); // apply default MAC configuration 201 … mac_config.smi_mdc_gpio_num = CONFIG_EXAMPLE_ETH_MDC_GPIO; // alter the GPIO used for MDC signal 202 …mac_config.smi_mdio_gpio_num = CONFIG_EXAMPLE_ETH_MDIO_GPIO; // alter the GPIO used for MDIO signal 203 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); // create MAC instance 223 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); // apply default MAC configuration 227 mac_config.interface = EMAC_DATA_INTERFACE_RMII; // alter EMAC Data Interface 228 mac_config.clock_config.rmii.clock_mode = EMAC_CLK_OUT; // select EMAC REF_CLK mode 229 …mac_config.clock_config.rmii.clock_gpio = EMAC_CLK_OUT_GPIO; // select GPIO number used to input/o… 230 esp_eth_mac_t *mac = esp_eth_mac_new_esp32(&mac_config); // create MAC instance 240 eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG(); // apply default MAC configuration [all …]
|
/hal_espressif-3.5.0/examples/ethernet/enc28j60/components/eth_enc28j60/ |
D | esp_eth_enc28j60.h | 88 …mac_new_enc28j60(const eth_enc28j60_config_t *enc28j60_config, const eth_mac_config_t *mac_config);
|
D | esp_eth_mac_enc28j60.c | 1056 …_mac_new_enc28j60(const eth_enc28j60_config_t *enc28j60_config, const eth_mac_config_t *mac_config) in esp_eth_mac_new_enc28j60() argument 1061 MAC_CHECK(mac_config, "can't set mac config to null", err, NULL); in esp_eth_mac_new_enc28j60() 1069 emac->sw_reset_timeout_ms = mac_config->sw_reset_timeout_ms; in esp_eth_mac_new_enc28j60() 1098 if (mac_config->flags & ETH_MAC_FLAG_PIN_TO_CORE) { in esp_eth_mac_new_enc28j60() 1101 …BaseType_t xReturned = xTaskCreatePinnedToCore(emac_enc28j60_task, "enc28j60_tsk", mac_config->rx_… in esp_eth_mac_new_enc28j60() 1102 mac_config->rx_task_prio, &emac->rx_task_hdl, core_num); in esp_eth_mac_new_enc28j60()
|