Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu/fe310: RTC: use rtc_mktime() #14878

Merged
merged 1 commit into from
Sep 25, 2020
Merged

Commits on Sep 25, 2020

  1. cpu/fe310: RTC: use rtc_mktime()

    Use RTC helper functions instead of libc functions.
    This gives us y2038 safety by the extended epoch and saves
    a good chunk of memory:
    
    picolibc mktime():
    
       text	   data	    bss	    dec	    hex	filename
      15048	    520	   2504	  18072	   4698	tests/periph_rtc/bin/hifive1/tests_periph_rtc.elf
    
    rtc_mktime():
    
       text	   data	    bss	    dec	    hex	filename
       7632	     40	   2452	  10124	   278c	tests/periph_rtc/bin/hifive1/tests_periph_rtc.elf
    benpicco committed Sep 25, 2020
    Configuration menu
    Copy the full SHA
    d092c12 View commit details
    Browse the repository at this point in the history