X-Git-Url: https://git.llucax.com/z.facultad/66.09/etherled.git/blobdiff_plain/e90caf3962147d853aed69fff4a2f3e6e1c03f05..f19e1e709f98c38cc5454339e58a0b13ba3cfbe0:/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 f2ef8f7..d6583d0 100644 --- a/pruebas/keil/red_test_anda/main.c +++ b/pruebas/keil/red_test_anda/main.c @@ -1,9 +1,15 @@ // vim: set et sw=4 sts=4 : +#include "types.h" #include "main.h" -static xdata leds1 _at_ 0x0080; -static xdata leds2 _at_ 0x00c0; +#ifdef SDCC +static byte xdata at 0x0080 leds1; +static byte xdata at 0x00c0 leds2; +#else +static byte xdata leds1 _at_ 0x0080; +static byte xdata leds2 _at_ 0x00c0; +#endif void sleep(unsigned char times) { @@ -36,9 +42,9 @@ void main(void) len = etherdev_read(); if (len) { - //leds1 = ~0x55; - //leds2 = ~len; - //sleep(0); + leds1 = ~0x55; + leds2 = ~len; + sleep(0); /* for (len = 0; len < uip_len; ++len) {