1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/atmega_common/periph
Benjamin Valentin 93d2068a9e cpu/atmega_common: Implement RTC based on TIM2
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.
2020-03-03 16:26:26 +01:00
..
adc.c cpu/atmega_common/periph: adc_sample() now returns int32_t 2020-01-10 14:13:13 +01:00
cpuid.c cpu/atmega_common: cpuid: add a word of warning 2019-11-11 18:07:09 +01:00
eeprom.c drivers/include/periph/eeprom: Changed uint8_t* to void* in API 2019-08-09 17:27:32 +02:00
gpio.c cpu/atmega_common/periph: Clean up PCINT support 2019-12-12 11:38:43 +01:00
i2c.c cpu/atmega: fix I2C compilation error with NDEBUG 2020-01-30 11:46:31 +01:00
Makefile
pm.c cpu/atmega_common: add cpu.c and startup.c common code 2018-11-02 16:23:47 +01:00
pwm.c cpu/atmega: fix PWM compilation error with NDEBUG 2020-02-03 00:14:32 +01:00
rtc.c cpu/atmega_common: Implement RTC based on TIM2 2020-03-03 16:26:26 +01:00
rtt.c cpu/atmega_common: fix compile problem with NDEBUG 2020-02-25 09:41:24 +01:00
spi.c cpu/atmega128rfa1: ATmega128rfa1 MCU support 2019-10-17 19:20:31 +02:00
timer.c cpu/atmega_common: Stop using reserved names 2019-11-23 11:56:11 +01:00
uart.c cpu/atmega_common: Cleanup state flags 2020-02-06 15:41:41 +01:00
wdt.c cpu/atmega_common: add implementation for watchdog 2019-11-07 11:35:29 +01:00