1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00
RIOT/cpu/gd32v
bors[bot] af393878d1
Merge #19251 #19254
19251: tests/driver_dac_dds: fix output of sine and saw functions r=benpicco a=benpicco



19254: cpu/gd32v: add periph_rtc_mem support r=benpicco a=gschorcht

### Contribution description

This PR provides the `periph_rtc_mem` support for GD32VF103.

A modified version of this driver could also be used for STM32F1.

### Testing procedure

`tests/periph_rtt` should work on any GD32V board, for example:
```
BOARD=sipeed-longan-nano make -C tests/periph_rtt flash
```
```
Help: Press s to start test, r to print it is ready
START
main(): This is RIOT! (Version: 2023.04-devel-319-gebc86-cpu/gd32v/periph_rtc_mem)

RIOT RTT low-level driver test
RTT configuration:
RTT_MAX_VALUE: 0xffffffff
RTT_FREQUENCY: 32768

Testing the tick conversion
Trying to convert 1 to seconds and back
Trying to convert 256 to seconds and back
Trying to convert 65536 to seconds and back
Trying to convert 16777216 to seconds and back
Trying to convert 2147483648 to seconds and back
All ok

Initializing the RTT driver
RTC mem OK
This test will now display 'Hello' every 5 seconds

RTT now: 1
Setting initial alarm to now + 5 s (163841)
rtt_get_alarm() PASSED
RTC mem OK
```

### Issues/PRs references

Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
2023-02-07 07:33:48 +00:00
..
include cpu/gd32v: add periph_adc support 2023-02-01 23:11:07 +01:00
periph Merge #19251 #19254 2023-02-07 07:33:48 +00:00
clock.c boards/common: add common definitions for GD32VF103 boards 2023-01-23 18:59:32 +01:00
cpu.c cpu/gdv32: add pm_layered support 2023-01-24 00:52:02 +01:00
doc.txt cpu/gd32v: Initial include of the GD32VF103 device 2021-08-24 14:30:23 +02:00
gd32v.config cpu/gdv32: add pm_layered support 2023-01-24 00:52:02 +01:00
Kconfig cpu/gd32v: add periph_rtc_mem support 2023-02-06 22:22:01 +01:00
Makefile cpu/gd32v: Initial include of the GD32VF103 device 2021-08-24 14:30:23 +02:00
Makefile.default cpu/gdv32: add pm_layered support 2023-01-24 00:52:02 +01:00
Makefile.dep cpu/gd32v: use NMSIS SDK package 2023-01-24 00:52:02 +01:00
Makefile.features cpu/gd32v: add periph_rtc_mem support 2023-02-06 22:22:01 +01:00
Makefile.include boards/common: add common definitions for GD32VF103 boards 2023-01-23 18:59:32 +01:00