]> git.llucax.com Git - z.facultad/66.09/etherled.git/commitdiff
Prueba simple de sdcc para prender los leds.
authorLeandro Lucarella <llucax@gmail.com>
Tue, 6 Dec 2005 08:05:52 +0000 (08:05 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Tue, 6 Dec 2005 08:05:52 +0000 (08:05 +0000)
pruebas/sdcc/leds.c [new file with mode: 0644]

diff --git a/pruebas/sdcc/leds.c b/pruebas/sdcc/leds.c
new file mode 100644 (file)
index 0000000..22aafaa
--- /dev/null
@@ -0,0 +1,11 @@
+
+xdata unsigned char at 0x0080 leds0;
+xdata unsigned char at 0x00c0 leds1;
+
+void main()
+{
+       leds0 = ~0xaa;
+       leds1 = ~0xcc;
+       while (1);
+}
+