# Files included by the user.
lpc2378_USER_CSRC = \
examples/lpc2378/main.c \
+ bertos/drv/timer.c \
+ bertos/cpu/arm/drv/vic_lpc2.c \
+ bertos/cpu/arm/drv/timer_lpc2.c \
#
# Files included by the user.
// Emtpy main.c file generated by the wizard
#include <cpu/irq.h>
#include <cfg/debug.h>
-
+#include <drv/timer.h>
#include <io/lpc23xx.h>
#define STATUS_LED (1<<19)
{
IRQ_ENABLE;
kdbg_init();
+ timer_init();
kprintf("NXP LPC2378 BeRTOS port test\n");
/* Turn off boot led */
IODIR0 = (1<<21);
kprintf("BeRTOS is up & running: %c\r",
spinner[i % countof(spinner)]);
LED_ON();
- for (int j = 0; j < 200000; j++ );
+ timer_delay(500);
LED_OFF();
- for (int j = 0; j < 200000; j++ );
+ timer_delay(500);
}
return 0;