Time & Timers

The timer, system-timer and time sub-system provides APIs for managing hardware & software timers, as well allowing the user to query the system-clock or high-resolution timer.

The API also provides access to real-time (as in the current time) using RTC sources, as well syncing the subsystem regularly with an RTC.

Notes

User-space API

The following table lists all functions related to the GPIO subsystem API.

API Description

BT_GetKernelTime()

Get's the current kernel time in us.

BT_GetKernelTick()

Get's the current kernel tick, usually ms units but depends on scheduler periodicity.

Hardware Timer API.

Software Timer API.

Time API.

Design Overview

Further Reading

The full API is defined under:

os/include/timers/bt_timers.h

See the implementation under:

os/src/timers/bt_timers.c

Back