A PicoTCP driver for the lpc1768 mbed board
Dependents: lpc1768-picotcp-demo TCPSocket_HelloWorld_PicoTCP Pico_TCP_UDP_Test TCPSocket_HelloWorld_PicoTCP ... more
Diff: pico_dev_mbed_emac.cpp
- Revision:
- 4:296b82a1b4b2
- Parent:
- 3:8689b9c62672
- Child:
- 5:50ba2a185f35
--- a/pico_dev_mbed_emac.cpp Tue Jun 11 19:09:55 2013 +0000 +++ b/pico_dev_mbed_emac.cpp Sat Jun 15 18:44:39 2013 +0000 @@ -26,6 +26,7 @@ #include <string.h> } #include "PicoCondition.h" +#include "proxy_endpoint.h" static PicoCondition rx_condition; @@ -113,6 +114,7 @@ ******************************/ uint32_t intStatus; + void ENET_IRQHandler(void) { // Get interrupt flag for enabled interrupts @@ -133,6 +135,7 @@ if(intStatus & INT_RX_DONE) { rx_condition.unlock(); + } // Clears _ALL_ EMAC interrupt flags @@ -149,6 +152,7 @@ while(true) { rx_condition.lock(); _emac_poll(dev); + picotcp_async_interrupt(); } } @@ -192,6 +196,7 @@ osTimerStart(phy_timer, 100); Thread *rxThread = new Thread(rxThreadCore, (void*)mbdev); + //rxThread->set_priority(osPriorityLow); //printf("ETH> Device %s created.\r\n", mbdev->dev.name);