mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/enlarge_ethernet_mac_stack_size' into 'master'
ethernet: enlarge ethernet task stack size See merge request idf/esp-idf!3203
This commit is contained in:
commit
aab43e6dda
@ -50,4 +50,11 @@ config EMAC_TASK_PRIORITY
|
|||||||
help
|
help
|
||||||
Ethernet MAC task priority.
|
Ethernet MAC task priority.
|
||||||
|
|
||||||
|
config EMAC_TASK_STACK_SIZE
|
||||||
|
int "Stack Size of EMAC Task"
|
||||||
|
default 3072
|
||||||
|
range 2000 8000
|
||||||
|
help
|
||||||
|
Stack Size of Ethernet MAC task.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
@ -106,6 +106,7 @@ struct emac_close_cmd {
|
|||||||
#define DMA_RX_BUF_NUM CONFIG_DMA_RX_BUF_NUM
|
#define DMA_RX_BUF_NUM CONFIG_DMA_RX_BUF_NUM
|
||||||
#define DMA_TX_BUF_NUM CONFIG_DMA_TX_BUF_NUM
|
#define DMA_TX_BUF_NUM CONFIG_DMA_TX_BUF_NUM
|
||||||
#define EMAC_TASK_PRIORITY CONFIG_EMAC_TASK_PRIORITY
|
#define EMAC_TASK_PRIORITY CONFIG_EMAC_TASK_PRIORITY
|
||||||
|
#define EMAC_TASK_STACK_SIZE CONFIG_EMAC_TASK_STACK_SIZE
|
||||||
|
|
||||||
#define DMA_RX_BUF_SIZE 1600
|
#define DMA_RX_BUF_SIZE 1600
|
||||||
#define DMA_TX_BUF_SIZE 1600
|
#define DMA_TX_BUF_SIZE 1600
|
||||||
|
@ -816,6 +816,7 @@ static void emac_start(void *param)
|
|||||||
emac_enable_clk(true);
|
emac_enable_clk(true);
|
||||||
|
|
||||||
emac_reset();
|
emac_reset();
|
||||||
|
emac_dma_init();
|
||||||
|
|
||||||
emac_set_macaddr_reg();
|
emac_set_macaddr_reg();
|
||||||
|
|
||||||
@ -1155,8 +1156,8 @@ esp_err_t esp_eth_init_internal(eth_config_t *config)
|
|||||||
emac_rx_xMutex = xSemaphoreCreateRecursiveMutex();
|
emac_rx_xMutex = xSemaphoreCreateRecursiveMutex();
|
||||||
emac_tx_xMutex = xSemaphoreCreateRecursiveMutex();
|
emac_tx_xMutex = xSemaphoreCreateRecursiveMutex();
|
||||||
emac_xqueue = xQueueCreate(EMAC_EVT_QNUM, sizeof(emac_event_t));
|
emac_xqueue = xQueueCreate(EMAC_EVT_QNUM, sizeof(emac_event_t));
|
||||||
xTaskCreate(emac_task, "emacT", 2048, NULL, EMAC_TASK_PRIORITY,
|
xTaskCreate(emac_task, "emacT", EMAC_TASK_STACK_SIZE, NULL,
|
||||||
&emac_task_hdl);
|
EMAC_TASK_PRIORITY, &emac_task_hdl);
|
||||||
|
|
||||||
emac_enable_clk(false);
|
emac_enable_clk(false);
|
||||||
esp_intr_alloc(ETS_ETH_MAC_INTR_SOURCE, 0, emac_process_intr, NULL, NULL);
|
esp_intr_alloc(ETS_ETH_MAC_INTR_SOURCE, 0, emac_process_intr, NULL, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user