*\r
* Copyright (C) 2008 ARM Limited. All rights reserved.\r
*\r
- * ARM Limited (ARM) is supplying this software for use with Cortex-M3 \r
- * processor based microcontrollers. This file can be freely distributed \r
- * within development tools that are supporting such ARM based processors. \r
+ * ARM Limited (ARM) is supplying this software for use with Cortex-M3\r
+ * processor based microcontrollers. This file can be freely distributed\r
+ * within development tools that are supporting such ARM based processors.\r
*\r
* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED\r
* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF\r
*------------------------------------------------------------------------------*/\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
if (SysTick_Config(SystemFrequency / 1000)) { /* Setup SysTick Timer for 1 msec interrupts */\r
while (1); /* Capture error */\r
}\r
- \r
- LED_Config(); \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
+\r
}\r
\r