Skip to content
Snippets Groups Projects
Select Git revision
  • f1251d66f73015939baaa0a5ce4c862e3d0da268
  • master default protected
  • esp32-nimble-wiki
  • rahix/hw-lock-new-mutex
  • dx/somewhat-more-dynamic-config
  • schneider/sdk-0.2.1-7
  • schneider/bsec
  • dx/meh-bdf-to-stm
  • dx/flatten-config-module
  • genofire/ble-follow-py
  • schneider/ble-stability
  • schneider/ble-stability-new-phy
  • add_menu_vibration
  • plaetzchen/ios-workaround
  • blinkisync-as-preload
  • schneider/max30001-pycardium
  • schneider/max30001-epicaridum
  • schneider/max30001
  • schneider/stream-locks
  • schneider/fundamental-test
  • schneider/ble-buffers
  • v1.12
  • v1.11
  • v1.10
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
37 results

rtc.c

Forked from card10 / firmware
Source project has a limited visibility.
  • Ferdinand Bachmann's avatar
    f1251d66
    feat(rtc): Add monotonic clock · f1251d66
    Ferdinand Bachmann authored and rahix's avatar rahix committed
    Squashed commits:
    
    e94f7bf9 epicardium/rtc: add monotonic time
    e0691c6d pycardium/modules/utime.c: add bindings for monotonic time
    756c13df epicardium/rtc: fix numerically unstable subsecond decoding
    
             the subsecond encoding function from epic_rtc_set_milliseconds
             and the corresponding decoding function from
             epic_rtc_get_milliseconds are not numerically stable.
    
             i.e., encoding 5 milliseconds to 20 subsecs and immediately
             afterwards decoding that yields 4 milliseconds.
    
             Adding a bias of 999 (0.24 milliseconds) to the decoding
             function makes it numerically stable, while never decoding any
             subsecond value to more than 999 milliseconds.
    
    e99e278b epicardium/rtc: only poll time once for calculating monotonic_offset
    18936b7e pycardium/modules/utime.c: run clang-format
    869ac617 epicardium/rtc: add explanation comment for numerically stable subsecond decode
    f1251d66
    History
    feat(rtc): Add monotonic clock
    Ferdinand Bachmann authored and rahix's avatar rahix committed
    Squashed commits:
    
    e94f7bf9 epicardium/rtc: add monotonic time
    e0691c6d pycardium/modules/utime.c: add bindings for monotonic time
    756c13df epicardium/rtc: fix numerically unstable subsecond decoding
    
             the subsecond encoding function from epic_rtc_set_milliseconds
             and the corresponding decoding function from
             epic_rtc_get_milliseconds are not numerically stable.
    
             i.e., encoding 5 milliseconds to 20 subsecs and immediately
             afterwards decoding that yields 4 milliseconds.
    
             Adding a bias of 999 (0.24 milliseconds) to the decoding
             function makes it numerically stable, while never decoding any
             subsecond value to more than 999 milliseconds.
    
    e99e278b epicardium/rtc: only poll time once for calculating monotonic_offset
    18936b7e pycardium/modules/utime.c: run clang-format
    869ac617 epicardium/rtc: add explanation comment for numerically stable subsecond decode