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);
18 unsigned char count = 1;
23 /* Initialise the device driver. */
25 while(1); // Si falla init nos quedamos bobos
36 for (len = 14; len < sizeof(uip_buf); ++len)
39 len = etherdev_read();
46 for (len = 0; len < uip_len; ++len)
48 leds1 = ~(1 << (len % 8));
49 leds2 = ~uip_buf[len];
54 //leds2 = ~uip_buf[42];
56 uip_buf[13] = count++;
65 while (1); // Quedamos paveando forever