Atmel Software Framework

oversampling.c File Reference

XMEGA ADC Oversampling Demo application Main File.

Copyright (C) 2014-2015 Atmel Corporation. All rights reserved.

#include <compiler.h>
#include <sleepmgr.h>
#include <sysclk.h>
#include <conf_oversampling.h>
#include <adc_oversampling.h>
#include <oversampling.h>
#include <asf.h>

Functions

int main (void)
 Main application routine. More...
 

int main ( void  )

Main application routine.

  • Initializes the board and LCD display
  • Initialize ADC ,to read ADC offset and configure for oversampling
  • If number of sample Reached to total number of oversample required, call function to start process on oversampled ADC readings

References adc_oversampled(), adc_oversampled_flag, board_init(), cpu_irq_enable, gfx_mono_draw_string(), gfx_mono_init, init_adc(), ioport_set_pin_high(), pmic_init(), sleepmgr_init(), ST7565R_DISPLAY_CONTRAST_MIN, st7565r_set_contrast(), sysclk_init, and sysfont.