PROJECT=rapper
 PLATFORM ?= arm-none-eabi
 LDFLAGS=--gc-sections -g -T LPC1768-flash.ld
-CFLAGS=-W -Wall -Os --std=gnu99 -fgnu89-inline -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -I. -g
+CFLAGS=-W -Wall --std=gnu99 -fgnu89-inline -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -I. -g
+#CFLAGS+=-Os
 
 # objects are separated by space
 OBJECTS=startup.o system_LPC17xx.o main.o core_cm3.o
 
  *------------------------------------------------------------------------------*/\r
 __inline static void LED_Config(void) {\r
 \r
-  GPIO1->FIODIR = 0xB0000000;                   /* LEDs PORT1 are Output */\r
+  GPIO1->FIODIR = (1<<29)|(1<<18);     /* LEDs on PORT1 18 & 29 are Output */\r
 }\r
 \r
 /*------------------------------------------------------------------------------\r
   LED_Config();                             \r
  \r
   while(1) {\r
-    LED_On ((1<<28));                           /* Turn on the LED. */\r
+    LED_On ((1<<29));                           /* Turn on the LED. */\r
+    LED_On ((1<<18));                           /* Turn on the LED. */\r
     Delay (100);                                /* delay  100 Msec */\r
-    LED_Off ((1<<28));                             /* Turn off the LED. */\r
+    LED_Off ((1<<29));                           /* Turn on the LED. */\r
+    Delay (100);                                /* delay  100 Msec */\r
+    LED_Off ((1<<18));                           /* Turn on the LED. */\r
+    LED_On ((1<<29));                           /* Turn on the LED. */\r
     Delay (100);                                /* delay  100 Msec */\r
   }\r
   \r
 
     MemManage_Handler,                      // The MPU fault handler\r
     BusFault_Handler,                       // The bus fault handler\r
     UsageFault_Handler,                     // The usage fault handler\r
-    0,                                      // Reserved\r
+    0xeffff74e,                             // Reserved\r
     0,                                      // Reserved\r
     0,                                      // Reserved\r
     0,                                      // Reserved\r