diff options
author | Etienne Carriere <etienne.carriere@linaro.org> | 2018-12-17 16:53:44 +0100 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2018-12-18 17:00:46 +0100 |
commit | 33d30a74502ba03cece2857f37e3099fc7e3449b (patch) | |
tree | 1eb972ee80a702111130a8f51985bf08d7a1d1b9 /core/drivers | |
parent | 24d49094ca028ed53397371fab8f91d05a95198c (diff) |
core: timeout detection support
Introduce timeout_init_us/timeout_elapsed() delay tracking with CNTPCT.
timeout_init_us(some_timeout_us); returns a reference to detect
timeout for the provided microsecond delay value from current time.
timeout_elapsed(reference) return true/false whether the reference
timeout is elapsed.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/drivers')
0 files changed, 0 insertions, 0 deletions