From 24c823f54822a2abc01a9d4e6f6dcf9c31a4e8e3 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 20 Nov 2012 15:53:33 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4834 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/PPC-SPC560B-GCC/main.c | 52 ++++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'demos') 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; } -- cgit v1.2.3