RX working, still a bit messy

This commit is contained in:
2024-08-20 22:38:02 +02:00
parent 6c556b8fbf
commit 497e380860
5 changed files with 26 additions and 14 deletions

View File

@ -215,13 +215,11 @@ xemacif_input_thread(struct netif *netif)
{
struct xemac_s *emac = (struct xemac_s *)netif->state;
while (1) {
xil_printf("input started\n");
/* sleep until there are packets to process
* This semaphore is set by the packet receive interrupt
* routine.
*/
sys_sem_wait(&emac->sem_rx_data_available);
xil_printf("input received\n");
/* move all received packets to lwIP */
xemacif_input(netif);