mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
93d2068a9e
This implements a basic Real Time Clock based on TIM2. As the timer is too fast and wraps around after just 8 bits, it is not used directly. Instead TIM2 is responsible for providing a 1 Hz tick by generating an alarm every second. The current time data is kept in the `.noinit` section, so it will survive a reboot, but the clock will not be updated while the bootloader runs, so expect inaccuracies.
12 lines
408 B
Makefile
12 lines
408 B
Makefile
FEATURES_PROVIDED += arch_8bit
|
|
FEATURES_PROVIDED += arch_avr8
|
|
FEATURES_PROVIDED += atmega_pcint0
|
|
FEATURES_PROVIDED += periph_eeprom
|
|
FEATURES_PROVIDED += periph_gpio periph_gpio_irq
|
|
FEATURES_PROVIDED += periph_pm
|
|
FEATURES_PROVIDED += periph_cpuid
|
|
FEATURES_PROVIDED += periph_wdt
|
|
|
|
FEATURES_CONFLICT += periph_rtc:periph_rtt
|
|
FEATURES_CONFLICT_MSG += "On ATmega, the RTC and RTT use to the same hardware timer."
|