Skip to content

CMSIS-RTOS2 platform

File SolidSyslogCmsisRtosSysUpTime.h

FileList > CmsisRtos > Interface > SolidSyslogCmsisRtosSysUpTime.h

The CMSIS-RTOS2 SolidSyslogSysUpTimeFunction, for the MetaSd structured-data element.

  • #include "SolidSyslogExternC.h"
  • #include <stdint.h>

Public Functions Documentation

SolidSyslogCmsisRtos_GetSysUpTime

Hundredths of a second of uptime from osKernelGetTickCount, for the meta-SD sysUpTime field.

uint32_t SolidSyslogCmsisRtos_GetSysUpTime (
    void
) 

The kernel tick counter is 32 bits on every CMSIS-RTOS2 implementation, so above 100 Hz it reaches its own wrap before the 2^32 hundredths RFC 3418 allows. The wraps are counted, which takes a short scheduler lock - safe from any task, not from an interrupt.



The documentation for this class was generated from the following file Platform/CmsisRtos/Interface/SolidSyslogCmsisRtosSysUpTime.h