Root Level Files

File name What is in the file Example
main.c Main application, enable or disable global and peripheral interrupts by calling INTERRUPT_GlobalInterruptEnable() and INTERRUPT_PeripheralInterruptEnable() for enabling interrupts or INTERRUPT_GlobalInterrupt\Disable() and INTERRUPT_PeripheralInterruptDisable() for disabling interrupts. See #GUID-3082C684-DC88-4D7D-8F35-F1EF93BF5719
mcc.c Code for initializing the MCU, drivers, and middleware in the project.

The SYSTEM_Initialize() function initializes the MCU (oscillators, clocks, etc.) and peripherals, which have been selected.

#include <atmel_start.h>
void atmel_start_init(void)
{
  system_init();
}
mcc.h API for initializing the MCU, drivers, and middleware in the project.
void atmel_start_init(void);
driver_isr.c Interrupt Service Routines for Init-functions where interrupts are enabled. Interrupt Service Routines for drivers such as Basic drivers are implemented in the driver's C-file.
ISR(USART0_TXC_vect)
{

	/**
	 * Insert your USART_0 transmission complete interrupt handling code
	 *
	 * The interrupt flag will be automatically cleared
	 */
}