1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Add box to pinio monitor/mapper

This commit is contained in:
jflyper 2018-02-03 11:18:18 +09:00
parent 8294048ce5
commit 6557b161aa
15 changed files with 193 additions and 1 deletions

View file

@ -60,6 +60,7 @@
#include "io/ledstrip.h"
#include "io/osd.h"
#include "io/osd_slave.h"
#include "io/piniobox.h"
#include "io/serial.h"
#include "io/transponder_ir.h"
#include "io/vtx_tramp.h" // Will be gone
@ -305,6 +306,9 @@ void fcTasksInit(void)
#ifdef USE_ADC_INTERNAL
setTaskEnabled(TASK_ADC_INTERNAL, true);
#endif
#ifdef USE_PINIOBOX
setTaskEnabled(TASK_PINIOBOX, true);
#endif
#ifdef USE_CMS
#ifdef USE_MSP_DISPLAYPORT
setTaskEnabled(TASK_CMS, true);
@ -585,5 +589,14 @@ cfTask_t cfTasks[TASK_COUNT] = {
.staticPriority = TASK_PRIORITY_IDLE
},
#endif
#ifdef USE_PINIOBOX
[TASK_PINIOBOX] = {
.taskName = "PINIOBOX",
.taskFunc = pinioBoxUpdate,
.desiredPeriod = TASK_PERIOD_HZ(20),
.staticPriority = TASK_PRIORITY_IDLE
},
#endif
#endif
};