Stop using 50ms mixer period when no module enabled

Also adds a 2ms mixer period if internal and external modules are stopped
but joystick mode is active
This commit is contained in:
Bryan Mayland
2021-10-01 11:16:43 +10:00
committed by Peter Feerick
parent 4258684248
commit 31cb282dd2
3 changed files with 10 additions and 4 deletions
+2 -1
View File
@@ -21,7 +21,8 @@
#ifndef _MIXER_SCHEDULER_H_
#define _MIXER_SCHEDULER_H_
#define MIXER_SCHEDULER_DEFAULT_PERIOD_US 4000u // 4ms
#define MIXER_SCHEDULER_DEFAULT_PERIOD_US 4000u // 4ms
#define MIXER_SCHEDULER_JOYSTICK_PERIOD_US 2000u // 2ms
#define MIN_REFRESH_RATE 1750 /* us */
#define MAX_REFRESH_RATE 50000 /* us */