| Xmega IEC60730 Class B Library 1.0 |

All Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
classb_freq.h File Reference

## Detailed Description

Settings and definitions for the CPU frequency test.

Application note:
  AVR1610: Guide to IEC60730 Class B compliance with XMEGA

Documentation
  For comprehensive code documentation, supported compilers, compiler settings and supported devices see readme.html

Author:
  Atmel Corporation: http://www.atmel.com
  Support email: avr@a.nosp@m.tmel.nosp@m..com

Copyright (C) 2012 Atmel Corporation. All rights reserved.

Definition in file classb_freq.h.

`#include "avr_compiler.h"`
`#include "classb_rtc_common.h"`
`#include "error_handler.h"`
Include dependency graph for classb_freq.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Macros
#define | F_CPU <value>
| The system frequency.
#define | CLASSB_TC_MOD 0
| TC module selection.
#define | CLASSB_TC_PRESCALER 8
| TC prescaler.
#define | CLASSB_TOLERANCE 25UL
| Tolerance for the CPU frequency deviation.

## Functions
void | classb_freq_setup_timer ()
| This sets up the TC that is used in the frequency test. This configures the period, prescaler and overflow interrupt.
void | classb_freq_callback ()
| This is called back from the RTC interrupt.