X-Git-Url: http://git.asbjorn.biz/?p=rapper.git;a=blobdiff_plain;f=new_cmsis%2Fmain.c;fp=new_cmsis%2Fmain.c;h=efd10ef8c8013ce7c00d40ff6c82cd81e6060db5;hp=2c70737f4a6944592f829d614372ae88aabd1f15;hb=b53b7ca998f1ae39a58c20eea19a7ff3d7961f94;hpb=4c765357d3685985fea2c360e681025c772e0472 diff --git a/new_cmsis/main.c b/new_cmsis/main.c index 2c70737..efd10ef 100644 --- a/new_cmsis/main.c +++ b/new_cmsis/main.c @@ -46,7 +46,7 @@ __inline static void Delay (uint32_t dlyTicks) { *------------------------------------------------------------------------------*/ __inline static void LED_Config(void) { - GPIO1->FIODIR = 0xB0000000; /* LEDs PORT1 are Output */ + GPIO1->FIODIR = (1<<29)|(1<<18); /* LEDs on PORT1 18 & 29 are Output */ } /*------------------------------------------------------------------------------ @@ -79,9 +79,13 @@ int main (void) { LED_Config(); while(1) { - LED_On ((1<<28)); /* Turn on the LED. */ + LED_On ((1<<29)); /* Turn on the LED. */ + LED_On ((1<<18)); /* Turn on the LED. */ Delay (100); /* delay 100 Msec */ - LED_Off ((1<<28)); /* Turn off the LED. */ + LED_Off ((1<<29)); /* Turn on the LED. */ + Delay (100); /* delay 100 Msec */ + LED_Off ((1<<18)); /* Turn on the LED. */ + LED_On ((1<<29)); /* Turn on the LED. */ Delay (100); /* delay 100 Msec */ }