Skip to content

Commit

Permalink
driver: eth_mcux: fixing build error on rt11xx
Browse files Browse the repository at this point in the history
in rt11xx series the ringbuffer is > 1

fixing: zephyrproject-rtos#42793

Signed-off-by: Hake Huang <[email protected]>
  • Loading branch information
hakehuang authored and dleach02 committed Feb 14, 2022
1 parent a1ce2fb commit d517947
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/ethernet/eth_mcux.c
Original file line number Diff line number Diff line change
Expand Up @@ -977,9 +977,15 @@ static void eth_tx_thread(void *arg1, void *unused1, void *unused2)
enet_handle_t *handle = &context->enet_handle;

if (handle->callback != NULL) {
#if FSL_FEATURE_ENET_QUEUE > 1
handle->callback(context->base,
handle, 0, kENET_TxEvent,
NULL, handle->userData);
#else
handle->callback(context->base,
handle, kENET_TxEvent,
NULL, handle->userData);
#endif
}
}
ENET_EnableInterrupts(context->base,
Expand Down

0 comments on commit d517947

Please sign in to comment.