From 292e69a46890da6ad2c95793c3c9f84c398ab4a0 Mon Sep 17 00:00:00 2001 From: ksb Date: Sat, 11 Jul 2009 15:23:24 +0000 Subject: [PATCH] Missing file --- platform/stepper-robot/usb-main.c | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 platform/stepper-robot/usb-main.c diff --git a/platform/stepper-robot/usb-main.c b/platform/stepper-robot/usb-main.c new file mode 100644 index 000000000..cf10c1f11 --- /dev/null +++ b/platform/stepper-robot/usb-main.c @@ -0,0 +1,32 @@ +#include +#include +#include +#include +#include +#include +#include +#include + +unsigned int idle_count = 0; + +int +main() +{ + dbg_setup_uart(); + printf("Initialising\n"); + + clock_init(); + process_init(); + process_start(&etimer_process, NULL); + autostart_start(autostart_processes); + printf("Processes running\n"); + while(1) { + do { + } while(process_run() > 0); + idle_count++; + /* Idle! */ + /* Stop processor clock */ + *AT91C_PMC_SCDR |= AT91C_PMC_PCK; + } + return 0; +}