Re: Timer using FRDM-K64F
Changing the k_timer API to work in some other unit than milliseconds is doable, though a little messy from a compatibility standpoint.
The underlying unit of ticks is configurable, and except for the tiny handful of remaining non-tickless targets, can now be arbitrary small (it's just the "unit of timekeeping" and doesn't correspond to interrupt frequency). The limits are the precision of the underlying timer and the overflow potential of 32 bit timeout API. Setting it to microseconds (and expecting it to be accurate at that level) should be possible on fast boards like K64F.
The suggestion to use a driver for external hardware (and not the system timer) is a good one though, especially if you have tight requirements. IIRC the K64 has a bunch of timer devices instanced in addition to the ARM SysTick that Zephyr is using.
From: Cufi, Carles <carles.cufi@...>
Sent: Thursday, January 10, 2019 9:25AM
To: Nicholas Yameen, Devel
Subject: Re: [Zephyr-devel] Timer using FRDM-K64F