forked from espressif/esp-idf
Add config option to set stack size for emac_rx task
This commit is contained in:
@@ -100,6 +100,12 @@ menu "Example Connection Configuration"
|
|||||||
Choose this option to connect with Ethernet
|
Choose this option to connect with Ethernet
|
||||||
|
|
||||||
if EXAMPLE_CONNECT_ETHERNET
|
if EXAMPLE_CONNECT_ETHERNET
|
||||||
|
config EXAMPLE_ETHERNET_EMAC_TASK_STACK_SIZE
|
||||||
|
int "emac_rx task stack size"
|
||||||
|
default 2048
|
||||||
|
help
|
||||||
|
This set stack size for emac_rx task
|
||||||
|
|
||||||
config EXAMPLE_USE_SPI_ETHERNET
|
config EXAMPLE_USE_SPI_ETHERNET
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
@@ -375,6 +375,7 @@ static esp_netif_t *eth_start(void)
|
|||||||
free(desc);
|
free(desc);
|
||||||
|
|
||||||
eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG();
|
eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG();
|
||||||
|
mac_config.rx_task_stack_size = CONFIG_EXAMPLE_ETHERNET_EMAC_TASK_STACK_SIZE;
|
||||||
eth_phy_config_t phy_config = ETH_PHY_DEFAULT_CONFIG();
|
eth_phy_config_t phy_config = ETH_PHY_DEFAULT_CONFIG();
|
||||||
phy_config.phy_addr = CONFIG_EXAMPLE_ETH_PHY_ADDR;
|
phy_config.phy_addr = CONFIG_EXAMPLE_ETH_PHY_ADDR;
|
||||||
phy_config.reset_gpio_num = CONFIG_EXAMPLE_ETH_PHY_RST_GPIO;
|
phy_config.reset_gpio_num = CONFIG_EXAMPLE_ETH_PHY_RST_GPIO;
|
||||||
|
Reference in New Issue
Block a user