mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 00:31:36 +08:00
reduce HRT_INTERVAL_MIN to 10 us
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
* reading a time and writing a deadline to the timer cannot
|
||||
* result in missing the deadline.
|
||||
*/
|
||||
#define HRT_INTERVAL_MIN 50
|
||||
#define HRT_INTERVAL_MIN 10
|
||||
#define HRT_INTERVAL_MAX 4294951760LL
|
||||
|
||||
/*
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
* reading a time and writing a deadline to the timer cannot
|
||||
* result in missing the deadline.
|
||||
*/
|
||||
#define HRT_INTERVAL_MIN 50
|
||||
#define HRT_INTERVAL_MIN 10
|
||||
#define HRT_INTERVAL_MAX 50000
|
||||
|
||||
/*
|
||||
|
||||
@@ -147,7 +147,7 @@
|
||||
* reading a time and writing a deadline to the timer cannot
|
||||
* result in missing the deadline.
|
||||
*/
|
||||
#define HRT_INTERVAL_MIN 50
|
||||
#define HRT_INTERVAL_MIN 10
|
||||
#define HRT_INTERVAL_MAX 50000
|
||||
|
||||
/*
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
* reading a time and writing a deadline to the timer cannot
|
||||
* result in missing the deadline.
|
||||
*/
|
||||
#define HRT_INTERVAL_MIN 50
|
||||
#define HRT_INTERVAL_MIN 10
|
||||
#define HRT_INTERVAL_MAX 4000000000
|
||||
|
||||
/*
|
||||
|
||||
@@ -209,7 +209,7 @@ void hrt_usr_call(void *arg)
|
||||
* reading a time and writing a deadline to the timer cannot
|
||||
* result in missing the deadline.
|
||||
*/
|
||||
#define HRT_INTERVAL_MIN 50
|
||||
#define HRT_INTERVAL_MIN 10
|
||||
#define HRT_INTERVAL_MAX 50000
|
||||
|
||||
/*
|
||||
|
||||
@@ -55,8 +55,8 @@
|
||||
#endif
|
||||
|
||||
// Intervals in usec
|
||||
static constexpr unsigned HRT_INTERVAL_MIN = 50;
|
||||
static constexpr unsigned HRT_INTERVAL_MAX = 50000000;
|
||||
static constexpr unsigned HRT_INTERVAL_MIN = 10;
|
||||
static constexpr unsigned HRT_INTERVAL_MAX = 50000;
|
||||
|
||||
/*
|
||||
* Queue of callout entries.
|
||||
|
||||
Reference in New Issue
Block a user