/* 
 * File:   init.h
 * Author: hamilton
 *
 * Created on January 27, 2014, 6:13 PM
 */

#ifndef INIT_H
#define	INIT_H

void InitIO();

void InitIIC();

void InitVariables();
void InitPIDGains();

void InitDma0();  //DMA channel 0 is used to transfer data at the end of the ADC1 conversion process
void InitDma3();  //DMA channel 3 is used to transfer data at the end of the ADC2 conversion process
void InitDma12();  //DMA channel 1 is used to transfer data to the CAN controller for subsequent transmission
void InitCAN1();

void InitADC1_WithIntrpt();
void InitADC2_WithIntrpt();

void InitMCPWM();

void InitQEI();

void InitSPI();
void InitDma345(); 

void InitIIC();

#endif	/* INIT_H */

