diff options
Diffstat (limited to 'demos/ARM7-AT91SAM7X-WEB-GCC/main.c')
-rw-r--r-- | demos/ARM7-AT91SAM7X-WEB-GCC/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/ARM7-AT91SAM7X-WEB-GCC/main.c b/demos/ARM7-AT91SAM7X-WEB-GCC/main.c index 00dc9193e..a3da190d7 100644 --- a/demos/ARM7-AT91SAM7X-WEB-GCC/main.c +++ b/demos/ARM7-AT91SAM7X-WEB-GCC/main.c @@ -33,9 +33,9 @@ static msg_t Thread1(void *arg) { while (TRUE) {
AT91C_BASE_PIOB->PIO_SODR = PIOB_LCD_BL; // LCD on.
- chThdSleep(100);
+ chThdSleepMilliseconds(100);
AT91C_BASE_PIOB->PIO_CODR = PIOB_LCD_BL; // LCD off.
- chThdSleep(900);
+ chThdSleepMilliseconds(900);
}
return 0;
}
@@ -56,7 +56,7 @@ int main(int argc, char **argv) { * Normal main() thread activity.
*/
while (TRUE) {
- chThdSleep(500);
+ chThdSleepMilliseconds(500);
if (!(AT91C_BASE_PIOB->PIO_PDSR & PIOB_SW1))
chFDDWrite(&COM1, (uint8_t *)"Hello World!\r\n", 14);
if (!(AT91C_BASE_PIOB->PIO_PDSR & PIOB_SW2))
|