1 // vim: set et sw=4 sts=4 :
5 static xdata leds1 _at_ 0x0080;
6 static xdata leds2 _at_ 0x00c0;
8 void sleep(unsigned char times)
12 for (i = 0; i < 0xffff; ++i)
13 for (j = 0; j < times; ++j);
22 /* Initialise the device driver. */
24 while(1); // Si falla init nos quedamos bobos
34 len = etherdev_read();
40 for (len = 0; len < uip_len; ++len)
42 leds1 = ~(1 << (len % 8));
43 leds2 = ~uip_buf[len];
55 while (1); // Quedamos paveando forever