Definition in file mc_drv.h.
#include "bldc.h"
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. |
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 }