Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

In the OCSDK some of µC/OS-II's low-level timer functions have been modified to enable low-power "tickless" operation. 

µC/OS-II's OSTimeGet function normally returns a 32-bit result in milliseconds of uptime, so it is expected to rollover every 49 days. In our implementation, it is based on the 32 kHz system clock with units of ~ 30 µs, so it rolls over every 36 hours.

When timing events, it is preferable to use the dn_getSystemTime function, which returns a 64-bit result in 32 kHz ticks.  dn_getSystemTime rolls over every ~18 million years. 

  • No labels