fb5.c
//Function To Initialize all The Devices
Function To Initialize all The Devices
Function To Initialize all The Devices
void init_devices()
{
 cli();				
 port_init();		
 uart2_init();		
 adc_init();
 timer5_init();
 timer4_init();
 TIMSK4 = 0x01;    
 left_position_encoder_interrupt_init();
 right_position_encoder_interrupt_init();
 sei();				
}
void init_devices ( ) { cli ( ) ; port_init ( ) ; uart2_init ( ) ; adc_init ( ) ; timer5_init ( ) ; timer4_init ( ) ; TIMSK4 = 0x01 ; left_position_encoder_interrupt_init ( ) ; right_position_encoder_interrupt_init ( ) ; sei ( ) ; }
Function To Initialize all The Devices
Function To Initialize all The Devices
//Clears the global interrupts //Initializes all the ports //Initailize UART2 for serial communiaction //Enables the overflow interrupt. //Enables the global interrupts