Config Folder

The config folder contains header files which hold configuration data not associated with particular drivers. An example is the main clock frequency, since there is no driver for the clock system in AVRs. Configuration for drivers is contained in the driver's C- and H-files, but since Foundation Services uses code generation technology, the desired configuration is usually generated directly, so traditional #define constructs are not much used in the drivers. The files in the config folder can be used by the user in his code, the main CPU frequency can for example be used by user code to calculate various execution speeds.

The Atmel START-based configuration is based on the ARM-CMSIS wizard annotation format.

As an example, if you open the clock_config.h file, you can check the CPU frequency:

#ifndef F_CPU
#define F_CPU 3333333
#endif
// <h> USART Clock Settings
// <y> USART Clock source
// <CLK_MAIN"> Main Clock (CLK_MAIN)
// <i> This defines the clock source for the USART module
// <id> usart_clock_source
#define CONF_USART_SRC CLK_MAIN

// </h>