diff options
Diffstat (limited to 'demos/PPC-SPC560B-GCC/main.c')
-rw-r--r-- | demos/PPC-SPC560B-GCC/main.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/demos/PPC-SPC560B-GCC/main.c b/demos/PPC-SPC560B-GCC/main.c index b296da222..5d764724a 100644 --- a/demos/PPC-SPC560B-GCC/main.c +++ b/demos/PPC-SPC560B-GCC/main.c @@ -103,59 +103,59 @@ static msg_t Thread1(void *arg) { unsigned i;
for (i = 0; i < 4; i++) {
- palClearPad(PD, PD_LED1);
+ palClearPad(PE, PE_LED1);
chThdSleepMilliseconds(100);
- palClearPad(PD, PD_LED2);
+ palClearPad(PE, PE_LED2);
chThdSleepMilliseconds(100);
- palClearPad(PD, PD_LED3);
+ palClearPad(PE, PE_LED3);
chThdSleepMilliseconds(100);
- palClearPad(PD, PD_LED4);
+ palClearPad(PE, PE_LED4);
chThdSleepMilliseconds(100);
- palSetPad(PD, PD_LED1);
+ palSetPad(PE, PE_LED1);
chThdSleepMilliseconds(100);
- palSetPad(PD, PD_LED2);
+ palSetPad(PE, PE_LED2);
chThdSleepMilliseconds(100);
- palSetPad(PD, PD_LED3);
+ palSetPad(PE, PE_LED3);
chThdSleepMilliseconds(100);
- palSetPad(PD, PD_LED4);
+ palSetPad(PE, PE_LED4);
chThdSleepMilliseconds(300);
}
for (i = 0; i < 4; i++) {
- palTogglePort(PD, PAL_PORT_BIT(PD_LED1) | PAL_PORT_BIT(PD_LED2) |
- PAL_PORT_BIT(PD_LED3) | PAL_PORT_BIT(PD_LED4));
+ palTogglePort(PE, PAL_PORT_BIT(PE_LED1) | PAL_PORT_BIT(PE_LED2) |
+ PAL_PORT_BIT(PE_LED3) | PAL_PORT_BIT(PE_LED4));
chThdSleepMilliseconds(500);
- palTogglePort(PD, PAL_PORT_BIT(PD_LED1) | PAL_PORT_BIT(PD_LED2) |
- PAL_PORT_BIT(PD_LED3) | PAL_PORT_BIT(PD_LED4));
+ palTogglePort(PE, PAL_PORT_BIT(PE_LED1) | PAL_PORT_BIT(PE_LED2) |
+ PAL_PORT_BIT(PE_LED3) | PAL_PORT_BIT(PE_LED4));
chThdSleepMilliseconds(500);
}
for (i = 0; i < 4; i++) {
- palTogglePad(PD, PD_LED1);
+ palTogglePad(PE, PE_LED1);
chThdSleepMilliseconds(250);
- palTogglePad(PD, PD_LED1);
- palTogglePad(PD, PD_LED2);
+ palTogglePad(PE, PE_LED1);
+ palTogglePad(PE, PE_LED2);
chThdSleepMilliseconds(250);
- palTogglePad(PD, PD_LED2);
- palTogglePad(PD, PD_LED3);
+ palTogglePad(PE, PE_LED2);
+ palTogglePad(PE, PE_LED3);
chThdSleepMilliseconds(250);
- palTogglePad(PD, PD_LED3);
- palTogglePad(PD, PD_LED4);
+ palTogglePad(PE, PE_LED3);
+ palTogglePad(PE, PE_LED4);
chThdSleepMilliseconds(250);
- palTogglePad(PD, PD_LED4);
+ palTogglePad(PE, PE_LED4);
}
for (i = 0; i < 4; i++) {
- palClearPort(PD, PAL_PORT_BIT(PD_LED1) | PAL_PORT_BIT(PD_LED3));
- palSetPort(PD, PAL_PORT_BIT(PD_LED2) | PAL_PORT_BIT(PD_LED4));
+ palClearPort(PE, PAL_PORT_BIT(PE_LED1) | PAL_PORT_BIT(PE_LED3));
+ palSetPort(PE, PAL_PORT_BIT(PE_LED2) | PAL_PORT_BIT(PE_LED4));
chThdSleepMilliseconds(500);
- palClearPort(PD, PAL_PORT_BIT(PD_LED2) | PAL_PORT_BIT(PD_LED4));
- palSetPort(PD, PAL_PORT_BIT(PD_LED1) | PAL_PORT_BIT(PD_LED3));
+ palClearPort(PE, PAL_PORT_BIT(PE_LED2) | PAL_PORT_BIT(PE_LED4));
+ palSetPort(PE, PAL_PORT_BIT(PE_LED1) | PAL_PORT_BIT(PE_LED3));
chThdSleepMilliseconds(500);
}
- palSetPort(PD, PAL_PORT_BIT(PD_LED1) | PAL_PORT_BIT(PD_LED2) |
- PAL_PORT_BIT(PD_LED3) | PAL_PORT_BIT(PD_LED4));
+ palSetPort(PE, PAL_PORT_BIT(PE_LED1) | PAL_PORT_BIT(PE_LED2) |
+ PAL_PORT_BIT(PE_LED3) | PAL_PORT_BIT(PE_LED4));
}
return 0;
}
|