Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: nRF51_Vdd TextLCD BME280
Functions in the Kernel namespace control RTOS kernel information. More...
Functions | |
uint64_t | get_ms_count () |
Read the current RTOS kernel millisecond tick count. | |
void | attach_idle_hook (void(*fptr)(void)) |
Attach a function to be called by the RTOS idle task. | |
void | attach_thread_terminate_hook (void(*fptr)(osThreadId_t id)) |
Attach a function to be called when a thread terminates. |
Detailed Description
Functions in the Kernel namespace control RTOS kernel information.
Function Documentation
uint64_t get_ms_count | ( | ) |
Read the current RTOS kernel millisecond tick count.
The tick count corresponds to the tick count the RTOS uses for timing purposes. It increments monotonically from 0 at boot, so it effectively never wraps. If the underlying RTOS only provides a 32-bit tick count, this method expands it to 64 bits.
- Returns:
- RTOS kernel current tick count
- Note:
- Mbed OS always uses millisecond RTOS ticks, and this could only wrap after half a billion years.
- You cannot call this function from ISR context.
Definition at line 31 of file Kernel.cpp.
Generated on Tue Jul 12 2022 15:16:20 by
