diff options
Diffstat (limited to 'demos/PPC-SPC563M-GCC/main.c')
-rw-r--r-- | demos/PPC-SPC563M-GCC/main.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/demos/PPC-SPC563M-GCC/main.c b/demos/PPC-SPC563M-GCC/main.c index aab1b4d44..fdce9de21 100644 --- a/demos/PPC-SPC563M-GCC/main.c +++ b/demos/PPC-SPC563M-GCC/main.c @@ -101,27 +101,22 @@ static msg_t Thread1(void *arg) { (void)arg;
chRegSetThreadName("blinker");
- SIU.GPDO[GPIO_LED1].R = 1;
- SIU.GPDO[GPIO_LED2].R = 1;
- SIU.GPDO[GPIO_LED3].R = 1;
- SIU.GPDO[GPIO_LED4].R = 1;
-
while (TRUE) {
- SIU.GPDO[GPIO_LED1].R = 0;
+ palClearPad(PORT11, P11_LED1);
chThdSleepMilliseconds(100);
- SIU.GPDO[GPIO_LED2].R = 0;
+ palClearPad(PORT11, P11_LED2);
chThdSleepMilliseconds(100);
- SIU.GPDO[GPIO_LED3].R = 0;
+ palClearPad(PORT11, P11_LED3);
chThdSleepMilliseconds(100);
- SIU.GPDO[GPIO_LED4].R = 0;
+ palClearPad(PORT11, P11_LED4);
chThdSleepMilliseconds(100);
- SIU.GPDO[GPIO_LED1].R = 1;
+ palSetPad(PORT11, P11_LED1);
chThdSleepMilliseconds(100);
- SIU.GPDO[GPIO_LED2].R = 1;
+ palSetPad(PORT11, P11_LED2);
chThdSleepMilliseconds(100);
- SIU.GPDO[GPIO_LED3].R = 1;
+ palSetPad(PORT11, P11_LED3);
chThdSleepMilliseconds(100);
- SIU.GPDO[GPIO_LED4].R = 1;
+ palSetPad(PORT11, P11_LED4);
chThdSleepMilliseconds(300);
}
return 0;
|