mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Merge pull request #4881 from jflyper/bfdev-adc-internal-full-task-version
VREFINT and core temperature support, full task polling version
This commit is contained in:
commit
4258651b3a
16 changed files with 321 additions and 42 deletions
|
@ -71,6 +71,7 @@
|
|||
#include "rx/rx.h"
|
||||
|
||||
#include "sensors/acceleration.h"
|
||||
#include "sensors/adcinternal.h"
|
||||
#include "sensors/barometer.h"
|
||||
#include "sensors/battery.h"
|
||||
#include "sensors/compass.h"
|
||||
|
@ -324,6 +325,9 @@ void fcTasksInit(void)
|
|||
#ifdef USE_ESC_SENSOR
|
||||
setTaskEnabled(TASK_ESC_SENSOR, feature(FEATURE_ESC_SENSOR));
|
||||
#endif
|
||||
#ifdef USE_ADC_INTERNAL
|
||||
setTaskEnabled(TASK_ADC_INTERNAL, true);
|
||||
#endif
|
||||
#ifdef USE_CMS
|
||||
#ifdef USE_MSP_DISPLAYPORT
|
||||
setTaskEnabled(TASK_CMS, true);
|
||||
|
@ -595,5 +599,14 @@ cfTask_t cfTasks[TASK_COUNT] = {
|
|||
.staticPriority = TASK_PRIORITY_IDLE
|
||||
},
|
||||
#endif
|
||||
|
||||
#ifdef USE_ADC_INTERNAL
|
||||
[TASK_ADC_INTERNAL] = {
|
||||
.taskName = "ADCINTERNAL",
|
||||
.taskFunc = adcInternalProcess,
|
||||
.desiredPeriod = TASK_PERIOD_HZ(1),
|
||||
.staticPriority = TASK_PRIORITY_IDLE
|
||||
},
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue