[riot-notifications] [RIOT-OS/RIOT] cpu/efm32: RTC Series 0: use RTC helper functions (#15413)

benpicco notifications at github.com
Mon Nov 9 18:02:52 CET 2020

### Contribution description

By using the RTC helper functions instead of POSIX `mktime()`/`gmtime()` we can not only extend the RTC range beyond Y2038.

For tests/periph_rtc:

#### before:

   text	   data	    bss	    dec	    hex	filename
  28028	    248	   2472	  30748	   781c stk3700/tests_periph_rtc.elf

#### after:

   text	   data	    bss	    dec	    hex	filename
  19400	    144	   2424	  21968	   55d0 stk3700/tests_periph_rtc.elf

The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.

Put here the description of your contribution:
- describe which part(s) of RIOT is (are) involved
- if it's a bug fix, describe the bug that it solves and how it is solved
- you can also give more information to reviewers about how to test your changes

### Testing procedure

`tests/periph_rtc` should still run on Series 0 MCUs.

### Issues/PRs references

fixes #13277

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * cpu/efm32: RTC Series 0: use RTC helper functions

-- File Changes --

    M cpu/efm32/periph/rtc_series0.c (10)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201109/f5c446f4/attachment.htm>

More information about the notifications mailing list