1 // vim: set et sw=4 sts=4 :
7 static byte xdata at 0x0080 leds1;
8 static byte xdata at 0x00c0 leds2;
10 static byte xdata leds1 _at_ 0x0080;
11 static byte xdata leds2 _at_ 0x00c0;
14 void sleep(unsigned char times)
18 for (i = 0; i < 0xffff; ++i)
19 for (j = 0; j < times; ++j);
24 unsigned char count = 1;
29 /* Initialise the device driver. */
31 while(1); // Si falla init nos quedamos bobos
38 // leemos hasta el fin de nuestros días
42 len = etherdev_read();
49 for (len = 0; len < uip_len; ++len)
51 leds1 = ~(1 << (len % 8));
52 leds2 = ~uip_buf[len];
57 //leds2 = ~uip_buf[42];
59 uip_buf[13] = count++;