mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Allow RX and OSD tasks to be scheduled at the second attempt on F411 processors
This commit is contained in:
parent
2af98ae7c8
commit
b3903edf55
3 changed files with 19 additions and 10 deletions
|
@ -26,6 +26,6 @@
|
|||
PG_REGISTER_WITH_RESET_TEMPLATE(schedulerConfig_t, schedulerConfig, PG_SCHEDULER_CONFIG, 0);
|
||||
|
||||
PG_RESET_TEMPLATE(schedulerConfig_t, schedulerConfig,
|
||||
.rxRelaxDeterminism = 25,
|
||||
.osdRelaxDeterminism = 25,
|
||||
.rxRelaxDeterminism = SCHEDULER_RELAX_RX,
|
||||
.osdRelaxDeterminism = SCHEDULER_RELAX_OSD,
|
||||
);
|
||||
|
|
|
@ -22,6 +22,15 @@
|
|||
|
||||
#include "pg/pg.h"
|
||||
|
||||
#ifdef STM32F411xE
|
||||
// Allow RX and OSD tasks to be scheduled at the second attempt on F411 processors
|
||||
#define SCHEDULER_RELAX_RX 1
|
||||
#define SCHEDULER_RELAX_OSD 1
|
||||
#else
|
||||
#define SCHEDULER_RELAX_RX 25
|
||||
#define SCHEDULER_RELAX_OSD 25
|
||||
#endif
|
||||
|
||||
typedef struct schedulerConfig_s {
|
||||
uint16_t rxRelaxDeterminism;
|
||||
uint16_t osdRelaxDeterminism;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue