Definition in file main.c.
#include "mc_control.h"
#include "config.h"
Go to the source code of this file.
Functions | |
int | main (void) |
int main | ( | void | ) |
Definition at line 82 of file main.c.
References mc_init_HW(), mc_regulation_loop(), and mc_start_motor().
00083 { 00084 00085 // Init hardware 00086 mc_init_HW(); 00087 00088 // Run Ramp Up sequence 00089 mc_start_motor(); 00090 00091 // Enable interrupts. The rest will now be handled by the ADC interrupts. 00092 Enable_interrupt(); 00093 00094 for (;;) { 00095 mc_regulation_loop(); 00096 } 00097 00098 return 0; 00099 }