diff --git a/src/drivers/drv_hrt.h b/src/drivers/drv_hrt.h index 17fe4ba107f0f7c77281d273b997c976d4c79c37..4f4787ab169f527b577e9252a9163bd62b9d3025 100644 --- a/src/drivers/drv_hrt.h +++ b/src/drivers/drv_hrt.h @@ -98,7 +98,7 @@ __EXPORT extern void abstime_to_ts(struct timespec *ts, hrt_abstime abstime); * * This function is not interrupt save. */ -__EXPORT extern hrt_abstime hrt_elapsed_time(const volatile hrt_abstime *then); +__EXPORT extern hrt_abstime hrt_elapsed_time(const hrt_abstime *then); /** * Compute the delta between a timestamp taken in the past diff --git a/src/drivers/kinetis/drv_hrt.c b/src/drivers/kinetis/drv_hrt.c index f1c046ff845d23db5f05323bc647712a7dcc155a..9a221223bc385ec6bdd55571ac2c670d63b7cdc0 100644 --- a/src/drivers/kinetis/drv_hrt.c +++ b/src/drivers/kinetis/drv_hrt.c @@ -598,7 +598,7 @@ abstime_to_ts(struct timespec *ts, hrt_abstime abstime) * Compare a time value with the current time. */ hrt_abstime -hrt_elapsed_time(const volatile hrt_abstime *then) +hrt_elapsed_time(const hrt_abstime *then) { hrt_abstime delta = hrt_absolute_time() - *then; diff --git a/src/drivers/samv7/drv_hrt.c b/src/drivers/samv7/drv_hrt.c index a38e42de5aba4cf854a9e12581a800af5a6c7879..7be4bbb487ba8290572f74c066f128a767cc2179 100644 --- a/src/drivers/samv7/drv_hrt.c +++ b/src/drivers/samv7/drv_hrt.c @@ -679,7 +679,7 @@ abstime_to_ts(struct timespec *ts, hrt_abstime abstime) * Compare a time value with the current time. */ hrt_abstime -hrt_elapsed_time(const volatile hrt_abstime *then) +hrt_elapsed_time(const hrt_abstime *then) { hrt_abstime delta = hrt_absolute_time() - *then; diff --git a/src/drivers/stm32/drv_hrt.c b/src/drivers/stm32/drv_hrt.c index f44ad152452c82802587392c5554b6e9da1235a4..c247cb22097f050ae4e61cfd6c3f0d0d4cfbd004 100644 --- a/src/drivers/stm32/drv_hrt.c +++ b/src/drivers/stm32/drv_hrt.c @@ -719,7 +719,7 @@ abstime_to_ts(struct timespec *ts, hrt_abstime abstime) * Compare a time value with the current time. */ hrt_abstime -hrt_elapsed_time(const volatile hrt_abstime *then) +hrt_elapsed_time(const hrt_abstime *then) { hrt_abstime delta = hrt_absolute_time() - *then;