esp_eth: possible start/stop issue fixed

ESP32 EMAC could hang when stopped/started multiple times at 10Mbps speed mode
This commit is contained in:
Ondrej Kosta
2023-01-30 09:28:44 +01:00
parent bdf3001a45
commit 256d457969
8 changed files with 65 additions and 65 deletions

View File

@@ -417,6 +417,11 @@ static inline void emac_ll_flush_trans_fifo_enable(emac_dma_dev_t *dma_regs, boo
dma_regs->dmaoperation_mode.flush_tx_fifo = enable;
}
static inline bool emac_ll_get_flush_trans_fifo(emac_dma_dev_t *dma_regs)
{
return dma_regs->dmaoperation_mode.flush_tx_fifo;
}
static inline void emac_ll_set_transmit_threshold(emac_dma_dev_t *dma_regs, uint32_t threshold)
{
dma_regs->dmaoperation_mode.tx_thresh_ctrl = threshold;