Xmega IEC60730 Class B Library  1.0
 All Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
classb_rtc_common.h File Reference

Detailed Description

Settings for the RTC driver.

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_rtc_common.h.

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

Go to the source code of this file.

Macros

RTC Settings and Class B Interface.

Settings and RTC information.

These two constants give information about the RTC to the Class B tests. Therefore, they need to be defined with correct values. As long as these are defined, any RTC driver can be used.

#define CLASSB_RTC_INT_PERIOD   2048UL
 RTC interrupt period.
#define CLASSB_RTC_FREQ   1024UL
 RTC frequency.
Test declarations.

Set which Class B tests are included in the RTC interrupt.

These symbols can be defined at the compiler level or in this file.

#define CLASSB_FREQ_TEST
 Test for the CPU frequency.
#define CLASSB_INT_MON
 Interrupt monitor.

Functions

Functions
void classb_rtc_setup ()
 This function sets up the RTC to be used in Class B tests.
void vbat_init (void)
bool rtc_is_busy (void)