1
0
Fork 0
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:
Michael Keller 2018-01-10 16:12:05 +13:00 committed by GitHub
commit 4258651b3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 321 additions and 42 deletions

View file

@ -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
};