main.c File Reference


Detailed Description

Main for Motor application.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file main.c.

#include "mc_control.h"
#include "config.h"

Include dependency graph for main.c:

Go to the source code of this file.

Functions

int main (void)


Function Documentation

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 }

Here is the call graph for this function:


Generated on Mon Dec 1 11:12:21 2008 for AVR498 : Atmel BLDC control on ATAVRMC301 with ATtiny861 by  doxygen 1.5.4