micro-os-plus / micro-os-plus-iii

The portable part of µOS++ IIIe (an xpm/npm package)
http://micro-os-plus.github.io
MIT License
115 stars 17 forks source link

Missing os_sysclock_steady_now () mentioned in the documentation #60

Open ilg-ul opened 4 years ago

ilg-ul commented 4 years ago

The first example in:

http://micro-os-plus.github.io/reference/cmsis-plus/group__cmsis-plus-rtos-c-clock.html#ga06b2db50eb711ad0389bb85c95467626

mentions os_sysclock_steady_now () which is not defined.

Investigate what is the correct way of obtaining the system clock steady counter and fix the example.

ilg-ul commented 4 years ago

Most probably the solution is:

os_clock_steady_now(os_clock_get_sysclock());