Code/C-Code/atmega.c
// Function to configure pins for motion configuration
Function to configure pins for motion configuration
Function to configure pins for motion configuration
void motion_pin_config (void)
{
 	DDRA = DDRA | 0x0F;
 	PORTA = PORTA & 0xF0;
 	DDRL = DDRL | 0x18;   			
 	PORTL = PORTL | 0x18; 			
}
void motion_pin_config ( void ) { DDRA = DDRA | 0x0F ; PORTA = PORTA & 0xF0 ; DDRL = DDRL | 0x18 ; PORTL = PORTL | 0x18 ; }
Function to configure pins for motion configuration
Function to configure pins for motion configuration
//Setting PL3 and PL4 pins as output for PWM generation //PL3 and PL4 pins are for velocity control using PWM.