xEMAC Init (SAM7X, IAR, uIP)

Hello, a glance over the source code for PHY and EMAC initialisation revealed a strange wait sequence for PHY auto init. The PHY layer on my board is DAVICOM DM9161A. In xEMACInit, before auto negotiation and rest of init work, at the bare beginning there is sequence:     /* Wait for PHY auto init end (rather crude delay!). */     vTaskDelay( emacPHY_INIT_DELAY ); This delay is 5s, and it is not connected to integrated SAM7X MAC layer. I wrote to DAVICOM but  ( after rading their documentation ) but they did not answer. This delay is, as quoted rather crude for my app, so i need to figure out the minimal Ethernet rise time (ready for use, and possibly without uIP). This part of code is taged as ‘supplied by Atmel (and reformated)’. On their web site i did not found examples for SAM7X, so if anybody have the original EMAC init code i would be thankfull, for sendig it. If there is anybody familiar with this issue, thanks in advance for any help or advice.

xEMAC Init (SAM7X, IAR, uIP)

I don’t think they supply the original code anymore, having updated it from the FreeRTOS code ;-)

xEMAC Init (SAM7X, IAR, uIP)

Maybe this helps http://www.at91.com/package_patch_driver/at91sam7x256_iar/at91sam7x256_iar.zip

xEMAC Init (SAM7X, IAR, uIP)

Thanks, it helps much! And Atmel Tech support sended me today this link: http://www.at91.com/Pages/products/EvaluationBoard/SAM7XEK/at91sam7xek.html Cheers