mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Removed function declaration.
This commit is contained in:
parent
d2c2bc3155
commit
1bd502e9ac
2 changed files with 15 additions and 3 deletions
|
@ -48,7 +48,6 @@
|
||||||
#include "fc/fc_core.h"
|
#include "fc/fc_core.h"
|
||||||
#include "fc/fc_rc.h"
|
#include "fc/fc_rc.h"
|
||||||
#include "fc/fc_dispatch.h"
|
#include "fc/fc_dispatch.h"
|
||||||
#include "fc/fc_tasks.h"
|
|
||||||
#include "fc/rc_controls.h"
|
#include "fc/rc_controls.h"
|
||||||
#include "fc/runtime_config.h"
|
#include "fc/runtime_config.h"
|
||||||
|
|
||||||
|
@ -96,9 +95,22 @@
|
||||||
#include "telemetry/telemetry.h"
|
#include "telemetry/telemetry.h"
|
||||||
|
|
||||||
#ifdef USE_BST
|
#ifdef USE_BST
|
||||||
static void taskBstMasterProcess(timeUs_t currentTimeUs);
|
#include "COLIBRI_RACE/i2c_bst.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_USB_CDC_HID
|
||||||
|
//TODO: Make it platform independent in the future
|
||||||
|
#ifdef STM32F4
|
||||||
|
#include "vcpf4/usbd_cdc_vcp.h"
|
||||||
|
#include "usbd_hid_core.h"
|
||||||
|
#elif defined(STM32F7)
|
||||||
|
#include "usbd_cdc_interface.h"
|
||||||
|
#include "usbd_hid.h"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "fc_tasks.h"
|
||||||
|
|
||||||
static void taskMain(timeUs_t currentTimeUs)
|
static void taskMain(timeUs_t currentTimeUs)
|
||||||
{
|
{
|
||||||
UNUSED(currentTimeUs);
|
UNUSED(currentTimeUs);
|
||||||
|
|
|
@ -259,7 +259,7 @@ TEST(SchedulerUnittest, TestQueueArray)
|
||||||
EXPECT_EQ(lastTaskPrev, taskQueueArray[enqueuedTasks - 2]);
|
EXPECT_EQ(lastTaskPrev, taskQueueArray[enqueuedTasks - 2]);
|
||||||
EXPECT_EQ(NULL, taskQueueArray[enqueuedTasks - 1]); // NULL at end of queue
|
EXPECT_EQ(NULL, taskQueueArray[enqueuedTasks - 1]); // NULL at end of queue
|
||||||
EXPECT_EQ(NULL, taskQueueArray[enqueuedTasks]);
|
EXPECT_EQ(NULL, taskQueueArray[enqueuedTasks]);
|
||||||
EXPECT_EQ(NULL, taskQueueArray[enqueuedTasks - 1]);
|
EXPECT_EQ(NULL, taskQueueArray[enqueuedTasks + 1]);
|
||||||
EXPECT_EQ(deadBeefPtr, taskQueueArray[TASK_COUNT_UNITTEST + 1]);
|
EXPECT_EQ(deadBeefPtr, taskQueueArray[TASK_COUNT_UNITTEST + 1]);
|
||||||
|
|
||||||
taskQueueArray[enqueuedTasks - 1] = 0;
|
taskQueueArray[enqueuedTasks - 1] = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue