From 304bef3554c9934bf6914654a3e26e6cf1dea646 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Fri, 20 Dec 2019 12:40:04 -0800 Subject: [PATCH] iimxr:Needed more margin on minimum reload. --- platforms/nuttx/src/px4/nxp/imxrt/hrt/hrt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platforms/nuttx/src/px4/nxp/imxrt/hrt/hrt.c b/platforms/nuttx/src/px4/nxp/imxrt/hrt/hrt.c index 25eef08265..5587b49e6c 100644 --- a/platforms/nuttx/src/px4/nxp/imxrt/hrt/hrt.c +++ b/platforms/nuttx/src/px4/nxp/imxrt/hrt/hrt.c @@ -125,8 +125,8 @@ * reading a time and writing a deadline to the timer cannot * result in missing the deadline. */ -#define HRT_INTERVAL_MIN 5 -#define HRT_INTERVAL_MAX 4294000000 +#define HRT_INTERVAL_MIN 50 +#define HRT_INTERVAL_MAX 4294951760LL /* * Period of the free-running counter, in microseconds. @@ -812,7 +812,7 @@ hrt_call_reschedule() * Determine what the next deadline will be. * * Note that we ensure that this will be within the counter - * period, so that when we truncate all but the low 16 bits + * period, so that when we truncate all but the low 32 bits * the next time the compare matches it will be the deadline * we want. *