mc_drv.h File Reference


Detailed Description

This file contains the function declarations.

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

Definition in file mc_drv.h.

#include "bldc.h"

Include dependency graph for mc_drv.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void mc_init_HW (void)
 This function initializes the hardware/software resources required for motor driver.


Function Documentation

void mc_init_HW ( void   ) 

This function initializes the hardware/software resources required for motor driver.

Definition at line 238 of file mc_drv.c.

References ADCInit(), Clear_prescaler, PLLInit(), PortsInit(), PWMInit(), and Timer0Init().

Referenced by main().

00239 {
00240   Clear_prescaler();
00241   PLLInit();
00242   PWMInit();
00243   ADCInit();
00244 
00245   // Initialize timer0 for commutation timing
00246   Timer0Init();
00247   
00248   // Initialize alternate function
00249   PortsInit();
00250 
00251 }

Here is the call graph for this function:


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