aboutsummaryrefslogtreecommitdiff
path: root/core/drivers
diff options
context:
space:
mode:
authorEtienne Carriere <etienne.carriere@linaro.org>2018-12-17 16:53:44 +0100
committerJérôme Forissier <jerome.forissier@linaro.org>2018-12-18 17:00:46 +0100
commit33d30a74502ba03cece2857f37e3099fc7e3449b (patch)
tree1eb972ee80a702111130a8f51985bf08d7a1d1b9 /core/drivers
parent24d49094ca028ed53397371fab8f91d05a95198c (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