A PicoTCP driver for the lpc1768 mbed board

Dependents:   lpc1768-picotcp-demo TCPSocket_HelloWorld_PicoTCP Pico_TCP_UDP_Test TCPSocket_HelloWorld_PicoTCP ... more

Files at this revision

API Documentation at this revision

Comitter:
daniele
Date:
Sun Jun 09 16:27:08 2013 +0000
Parent:
1:5704aeb1157d
Child:
3:8689b9c62672
Commit message:
Lowered interrupt priority ot 0

Changed in this revision

pico_dev_mbed_emac.cpp Show annotated file Show diff for this revision Revisions of this file
pico_dev_mbed_emac_private.h Show annotated file Show diff for this revision Revisions of this file
--- a/pico_dev_mbed_emac.cpp	Thu Jun 06 07:11:03 2013 +0000
+++ b/pico_dev_mbed_emac.cpp	Sun Jun 09 16:27:08 2013 +0000
@@ -171,7 +171,7 @@
 
   // Create periodic PHY status update thread
   osTimerId phy_timer = osTimerCreate(osTimer(_emac_phy_status), osTimerPeriodic, (void *)mbdev);
-  osTimerStart(phy_timer, 250);
+  osTimerStart(phy_timer, 100);
 
   //printf("ETH> Device %s created.\r\n", mbdev->dev.name);
 
@@ -631,7 +631,6 @@
     }
 
     // Full or half duplex
-    /*
     if (linksts & DP8_FULLDUPLEX)
       printf(" Full duplex mode ! --");
     else
@@ -642,7 +641,6 @@
       printf(" @  10 MBPS\r\n");
     else
       printf(" @ 100 MBPS\r\n");
-    */
   }
 
   return changed;
--- a/pico_dev_mbed_emac_private.h	Thu Jun 06 07:11:03 2013 +0000
+++ b/pico_dev_mbed_emac_private.h	Sun Jun 09 16:27:08 2013 +0000
@@ -22,11 +22,11 @@
  * DEFINES *
  ***********/
 
-#define EMAC_INTERRUPT_PRIORITY       5 /* the lower the number, the higher the priority */
+#define EMAC_INTERRUPT_PRIORITY       0 /* the lower the number, the higher the priority */
 
 /* EMAC Memory Buffer configuration for 16K Ethernet RAM. */
 #define NUM_RX_FRAG         3           /* Num.of RX Fragments 4*1536= 6.0kB */
-#define NUM_TX_FRAG         4           /* Num.of TX Fragments 3*1536= 4.6kB */
+#define NUM_TX_FRAG         3           /* Num.of TX Fragments 3*1536= 4.6kB */
 #define ETH_MAX_MTU         1536        /* Max. Ethernet Frame Size          */
 
 /* EMAC variables located in AHB SRAM bank 1*/