Atmel Software Framework

cdc_example.c File Reference
#include "nlao_cpu.h"
#include "nlao_usart.h"
#include "compiler.h"
#include "board.h"
#include "print_funcs.h"
#include "intc.h"
#include "power_clocks_lib.h"
#include "cdc_example.h"
#include "conf_usb.h"
#include "usb_task.h"
#include "device_cdc_task.h"
#include "host_cdc_task.h"
#include <stdio.h>

Functions

int _init_startup (void)
 Low-level initialization routine called during startup, before the main function. More...
 
int main (void)
 Main function. Execution starts here. More...
 

Variables

System Clock Frequencies
pcl_freq_param_t pcl_freq_param
 

int _init_startup ( void  )

Low-level initialization routine called during startup, before the main function.

This version comes in replacement to the default one provided by the Newlib add-ons library. Newlib add-ons' _init_startup only calls init_exceptions, but Newlib add-ons' exception and interrupt vectors are defined in the same section and Newlib add-ons' interrupt vectors are not compatible with the interrupt management of the INTC module. More low-level initializations are besides added here.

References _evba, DBG_USART, Enable_global_exception, INTC_init_interrupts(), and Set_system_register.

pcl_freq_param_t pcl_freq_param
Initial value:
=
{
.cpu_f = APPLI_CPU_SPEED,
.pba_f = APPLI_PBA_SPEED,
.osc0_f = FOSC0,
.osc0_startup = OSC0_STARTUP
}
#define APPLI_PBA_SPEED
Definition: cdc_example.h:58
#define APPLI_CPU_SPEED
Definition: cdc_example.h:57
#define FOSC0
Definition: bsp-evk1105.c:23

Referenced by _init_startup(), cdc_set_line_coding(), and main().