mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-03 00:21:44 +01:00
ethernet: add gpio number into config structure
This commit is contained in:
@@ -544,7 +544,7 @@ uint32_t emac_hal_receive_frame(emac_hal_context_t *hal, uint8_t *buf, uint32_t
|
||||
return len;
|
||||
}
|
||||
|
||||
void emac_hal_isr(void *arg)
|
||||
IRAM_ATTR void emac_hal_isr(void *arg)
|
||||
{
|
||||
emac_hal_context_t *hal = (emac_hal_context_t *)arg;
|
||||
typeof(hal->dma_regs->dmastatus) dma_status = hal->dma_regs->dmastatus;
|
||||
@@ -615,7 +615,7 @@ void emac_hal_isr(void *arg)
|
||||
}
|
||||
}
|
||||
|
||||
__attribute__((weak)) void emac_hal_tx_complete_cb(void *arg)
|
||||
IRAM_ATTR __attribute__((weak)) void emac_hal_tx_complete_cb(void *arg)
|
||||
{
|
||||
// This is a weak function, do nothing by default
|
||||
// Upper code can rewrite this function
|
||||
@@ -623,7 +623,7 @@ __attribute__((weak)) void emac_hal_tx_complete_cb(void *arg)
|
||||
return;
|
||||
}
|
||||
|
||||
__attribute__((weak)) void emac_hal_tx_unavail_cb(void *arg)
|
||||
IRAM_ATTR __attribute__((weak)) void emac_hal_tx_unavail_cb(void *arg)
|
||||
{
|
||||
// This is a weak function, do nothing by default
|
||||
// Upper code can rewrite this function
|
||||
@@ -631,7 +631,7 @@ __attribute__((weak)) void emac_hal_tx_unavail_cb(void *arg)
|
||||
return;
|
||||
}
|
||||
|
||||
__attribute__((weak)) void emac_hal_rx_complete_cb(void *arg)
|
||||
IRAM_ATTR __attribute__((weak)) void emac_hal_rx_complete_cb(void *arg)
|
||||
{
|
||||
// This is a weak function, do nothing by default
|
||||
// Upper code can rewrite this function
|
||||
@@ -639,7 +639,7 @@ __attribute__((weak)) void emac_hal_rx_complete_cb(void *arg)
|
||||
return;
|
||||
}
|
||||
|
||||
__attribute__((weak)) void emac_hal_rx_early_cb(void *arg)
|
||||
IRAM_ATTR __attribute__((weak)) void emac_hal_rx_early_cb(void *arg)
|
||||
{
|
||||
// This is a weak function, do nothing by default
|
||||
// Upper code can rewrite this function
|
||||
@@ -647,7 +647,7 @@ __attribute__((weak)) void emac_hal_rx_early_cb(void *arg)
|
||||
return;
|
||||
}
|
||||
|
||||
__attribute__((weak)) void emac_hal_rx_unavail_cb(void *arg)
|
||||
IRAM_ATTR __attribute__((weak)) void emac_hal_rx_unavail_cb(void *arg)
|
||||
{
|
||||
// This is a weak function, do nothing by default
|
||||
// Upper code can rewrite this function
|
||||
|
||||
Reference in New Issue
Block a user