]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - arch/arm/mach-lpc21xx/test/armtest_leds/main.c
lpceurobot board builds without errors
[sysless.git] / arch / arm / mach-lpc21xx / test / armtest_leds / main.c
index ad925886bb8e66251fdaeaa8fe967ec7704cf6d5..18b251d0f703d576916a639796a8a2cdf2d1a3fe 100644 (file)
@@ -44,9 +44,9 @@ static void lowInit(void) {
     PLLFEED = 0x55;                       // MUST occur in sequence.\r
 \r
     // setup the parallel port pin\r
-    IOCLR = PIO_ZERO_BITS;                // clear the ZEROs output\r
-    IOSET = PIO_ONE_BITS;                 // set the ONEs output\r
-    IODIR = PIO_OUTPUT_BITS;              // set the output bit direction\r
+    IO0CLR = PIO_ZERO_BITS;                // clear the ZEROs output\r
+    IO0SET = PIO_ONE_BITS;                 // set the ONEs output\r
+    IO0DIR = PIO_OUTPUT_BITS;              // set the output bit direction\r
 \r
     // wait for PLL lock\r
     while (!(PLLSTAT & PLLSTAT_LOCK))\r
@@ -119,8 +119,8 @@ static int All_leds = 0xF0000;
  */\r
 static void\r
 ledInit() {\r
-    IODIR |= 0x000F0000; /*leds connected to P0.16 17 18 & 19 should blink*/\r
-    IOSET = 0x000F0000;   /* all leds are switched on */\r
+    IO0DIR |= 0x000F0000; /*leds connected to P0.16 17 18 & 19 should blink*/\r
+    IO0SET = 0x000F0000;   /* all leds are switched on */\r
 }\r
 \r
 /**\r
@@ -129,7 +129,7 @@ ledInit() {
  */\r
 static void   /* Ioclr.i =1   =>   IOset.i cleared */\r
 ledOff(int led) {\r
-    IOCLR = led;\r
+    IO0CLR = led;\r
 }\r
 \r
 /**\r
@@ -138,7 +138,7 @@ ledOff(int led) {
  */\r
 static void    /*  Ioset.i = 1   =>  P0.i = 1    */\r
 ledOn(int led) {\r
-    IOSET = led;\r
+    IO0SET = led;\r
 }\r
 \r
 /**\r