Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/sam7ex256/current/ChangeLog,v
retrieving revision 1.1
diff -u -r1.1 ChangeLog
--- ChangeLog	7 Jan 2007 15:22:05 -0000	1.1
+++ ChangeLog	8 Jan 2007 17:31:48 -0000
@@ -1,3 +1,7 @@
+2007-08-01  Uwe Kindler  <uwe_kindler@web.de>
+
+	* src/sam7ex256_misc.c Use the backlight of the lcd as a simple 1-bit LED
+
 2006-12-30  Uwe Kindler  <uwe_kindler@web.de>
 
 	* SAM7-EX256 development board package

Index: src/sam7ex256_misc.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/sam7ex256/current/src/sam7ex256_misc.c,v
retrieving revision 1.1
diff -u -r1.1 sam7ex256_misc.c
--- src/sam7ex256_misc.c	7 Jan 2007 15:22:05 -0000	1.1
+++ src/sam7ex256_misc.c	8 Jan 2007 17:29:43 -0000
@@ -53,15 +53,13 @@
 #include <cyg/hal/hal_io.h>             // IO macros
 
 //
-// the development board does not contain any leds but this function is
-// required for proper compilation - maybe we can use the integrated
-// nokia 320x 320 pixel lcd for led debug output
+// The development board does not contain any leds but a nokia 320 x 320 
+// pixel lcd. We use the backlight of the lcd as a simple 1-bit LED
 //
 void hal_at91_led (int val)
 {
-    //
-    // todo: implement led simulation for nokia 320 x 320 pixel LCD
-    //
+    HAL_ARM_AT91_GPIO_CFG_DIRECTION(AT91_GPIO_PB20, AT91_PIN_OUT);
+    HAL_ARM_AT91_GPIO_PUT(AT91_GPIO_PB20, (val & 1));
 }