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; +}