Settings for the RTC driver.
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) |