1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

27206 Commits

Author SHA1 Message Date
Benjamin Valentin
1dd260b446 boards: enable RTC for every ATmega board that supports RTT
Every ATmega board that can run an Real Time Timer can also run
an emulated Real Time Clock.

Got all supported boards by adding `FEATURES_REQUIRED += arch_8bit`
to `tests/periph_rtt` and running

    sed -i 's/FEATURES_PROVIDED += periph_rtt/
              FEATURES_PROVIDED += periph_rtc\n
              FEATURES_PROVIDED += periph_rtt/g'

on them.
2020-03-03 16:27:44 +01:00
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
Benjamin Valentin
725311a054 periph_common/rtc: add rtc_tm_valid()
Add a function to verify all members of a struct tm are within
the valid range.
2020-03-03 16:26:14 +01:00
4f7d7c03b4
Merge pull request #13364 from kaspar030/auto_init_more_Debug
sys/auto_init: cleanup / unify / DEBUG -> LOG_DEBUG
2020-03-03 16:06:35 +01:00
Martine S. Lenders
d455662a02
dist/testbed-support: Make tmux optional with iotlab-term 2020-03-03 15:24:02 +01:00
Martine S. Lenders
59ecc48eb6
dist/testbed-support: Wait for flash to be done when provided with term
Compare https://github.com/RIOT-OS/RIOT/pull/12468
2020-03-03 15:24:01 +01:00
Martine S. Lenders
2fec1f7adc
dist/testbed-support: Use IOTLAB_EXP_ID when trying to login at site 2020-03-03 15:24:00 +01:00
Martine S. Lenders
d169a6ac9f
dist/testbed-support: Fix IOTLAB_SITE determination 2020-03-03 15:24:00 +01:00
Martine S. Lenders
f8198dbf6f
tinydtls: remove receive buffer indirection via mbox 2020-03-03 14:42:16 +01:00
f7bb189d3e dist/tools/ci/static_tests.sh: tag base branch for Murdock 2020-03-03 14:38:13 +01:00
294b999d34 dist/tools/ci/static_tests.sh: fix shellcheck errors 2020-03-03 14:38:13 +01:00
5c44e27a7d murdock: use dist/tools/ci/static_tests.sh 2020-03-03 14:38:13 +01:00
392e5ed5f5
Merge pull request #13540 from aabadie/pr/doc/doxygen_dot_graph_fix
doxygen: increase DOT_GRAPH_MAX_NODES
2020-03-03 14:29:51 +01:00
a9768151dd
ci/buildssytem: ensure APPDEPS not exported 2020-03-03 14:19:55 +01:00
26222d601c
boards/arduino-mkr: don't export MKR_JLINK_DEVICE variables 2020-03-03 14:18:03 +01:00
d10211b7ff
boards/esp32-wroom-32: don't export _PARAM_DEFINED variables 2020-03-03 14:18:03 +01:00
a8b81adbd2
boards/cc2650*: don't export XDEBUGGER variable 2020-03-03 14:18:03 +01:00
21f48af3cd
boards/nz32-sc151: don't export ID variable 2020-03-03 14:18:03 +01:00
2722869dbb
boards/arduino-due: don't export BOSSA_ARDUINO_PREFLASH 2020-03-03 14:18:03 +01:00
acce5e22d1
boards/pic32: don't export APPDEPS
This variable is already export in vars.inc.mk
2020-03-03 14:18:03 +01:00
cc48b67fb5
boards/pic32: don't export USE_UHI_SYSCALLS 2020-03-03 14:18:03 +01:00
b7f5b18991
boards: don't export ROM_OFFSET variable 2020-03-03 14:18:03 +01:00
bd81060354
boards/{telosb,iotlab}: remove useless export for BAUD
The variable is already eported in serial.inc.mk
2020-03-03 14:18:03 +01:00
Gunar Schorcht
9e372104f0
Merge pull request #13284 from benpicco/rtc_mktime
periph_common/rtc: add rtc_mktime() & rtc_localtime() helper functions for RTC implementations
2020-03-03 14:12:50 +01:00
8069c8e5a1
doxygen: increase DOT_GRAPH_MAX_NODES 2020-03-03 14:09:37 +01:00
Martine S. Lenders
6c5d9e4f39
gnrc_uhcpc: fix NULL pointer dereference 2020-03-03 13:56:56 +01:00
b050608771
Merge pull request #13262 from aabadie/pr/sys/disp_dev
sys/disp_dev: add generic interface for display drivers
2020-03-03 13:25:45 +01:00
Francisco
3f062a78b2
Merge pull request #13045 from aabadie/pr/boards/remote_factorize
boards/remote*: cleanup and factorize code in peripheral configuration headers
2020-03-03 13:21:04 +01:00
481f3bcb35
Merge pull request #13180 from fjmolinas/pr_slwstk6000b_cleanup
boards/slwstk6000b-*: cleanup
2020-03-03 13:15:03 +01:00
Juergen Fitschen
8fbfb13c84 Revert "boards/samr30-xpro: fix AT86RF212B communication"
This reverts commit a9faac7218.

The changed rounding behavior sets the SPI baud rate to 4MHz, which is a suitable rate for the AT86RF212B.
2020-03-03 12:32:54 +01:00
Juergen Fitschen
0032d35fe8 cpu/sam0_common: mitigate rounding errors of baud rate calculation
Instead of always rounding up, the driver now rounds to the nearest integer. This reduces the absolut rounding error when setting SPI baud rates.
2020-03-03 12:32:42 +01:00
d13d1aed48
Merge pull request #13336 from bergzand/pr/mtd_spi_nor/erase_timings_in_struct
mtd_spi_nor: erase timings in struct
2020-03-03 11:59:28 +01:00
b27ae335af
ci/buildsystem_check: ensure OPENOCD_ADAPTER_INIT is not exported 2020-03-03 11:42:20 +01:00
1df314d25e
makefiles/openocd-adapters: don't export OPENOCD_ADAPTER_INIT 2020-03-03 11:42:20 +01:00
54dbb5fce0
makefiles/openocd: export OPENOCD_ADAPTER_INIT to required target 2020-03-03 11:42:20 +01:00
39733a5c30
ci/buildsystem_check: ensure OPENOCD_RESET... is not exported 2020-03-03 11:42:19 +01:00
f1ba22534a
boards: don't export globally OPENOCD_RESET_USE... 2020-03-03 11:42:19 +01:00
5ba95ed857
makefiles/openocd: export OPENOCD_RESET_USE... to required targets 2020-03-03 11:42:19 +01:00
benpicco
c6d5cd8872
Merge pull request #13521 from gschorcht/cpu/esp32/add_noinit_section
cpu/esp32: add .noinit section in linker script
2020-03-03 11:38:55 +01:00
Francisco Molina
86ed76fec0
boards/common/slwstk6000b: remove unused files 2020-03-03 11:24:28 +01:00
Francisco Molina
e951b720b8
boards/common/slwstk6000b: use slwstk6000b.vars.mk to parse JLINK_DEVICE 2020-03-03 11:24:27 +01:00
Francisco Molina
22aae93efb
boards/common/slwstk6000b: cleanup slwrb41* includes 2020-03-03 11:24:26 +01:00
Francisco Molina
b7783e67a8
boards/common/slwstk6000b: use slwstk6000b.vars.mk to parse CPU_MODEL 2020-03-03 11:24:26 +01:00
Francisco Molina
96cfa1d41c
boards/common/slwstk6000b: add module variables makefile 2020-03-03 11:22:48 +01:00
Benjamin Valentin
1ca26adde8 cpu/esp32: rtc: use rtc_mktime() for Y2038k
By using a custom EPOCH for the RTC implementation, we can extend the
range of the 32 bit counter based RTC by 118 years.

It also reduces the code size compared to the stdlib based POSIX functions.
2020-03-03 11:01:02 +01:00
Benjamin Valentin
6581d43337 tests/periph_rtc: don't set time in the past 2020-03-03 11:01:02 +01:00
Benjamin Valentin
5b64ae4ef5 periph_common/rtc: add rtc_localtime()
Add function to convert a RTC timestamp (non-UNIX) to a time struct.
2020-03-03 11:01:02 +01:00
ede7836b16
tests/sys_disp_dev: add disp_dev test application 2020-03-03 10:25:55 +01:00
acfac5d32d
drivers/ili9341: provide adaption to disp_dev interface 2020-03-03 10:25:55 +01:00
ac6d0b9077
sys: add interface for generic display device 2020-03-03 10:25:54 +01:00