X-Git-Url: https://git.llucax.com/z.facultad/66.09/etherled.git/blobdiff_plain/674a29d498921fc9a07d0582ae69e674a069ab9d..e90caf3962147d853aed69fff4a2f3e6e1c03f05:/pruebas/keil/red_test_anda/main.c diff --git a/pruebas/keil/red_test_anda/main.c b/pruebas/keil/red_test_anda/main.c index 601f292..f2ef8f7 100644 --- a/pruebas/keil/red_test_anda/main.c +++ b/pruebas/keil/red_test_anda/main.c @@ -29,19 +29,16 @@ void main(void) leds2 = ~0xaa; - // leemos - do + // leemos hasta el fin de nuestros días + while (1) { - for (len = 14; len < sizeof(uip_buf); ++len) - uip_buf[len] = 0; - len = etherdev_read(); if (len) { - leds1 = ~0x55; - leds2 = ~len; - sleep(0); + //leds1 = ~0x55; + //leds2 = ~len; + //sleep(0); /* for (len = 0; len < uip_len; ++len) { @@ -62,6 +59,5 @@ void main(void) leds2 = ~0x00; } } - while (1); // Quedamos paveando forever }