AP_Scheduler: add and use AP_Scheduler_config.h

This commit is contained in:
Peter Barker 2023-06-15 19:50:02 +10:00 committed by Andrew Tridgell
parent 4219d498ec
commit 435214852e
3 changed files with 12 additions and 6 deletions

View File

@ -14,10 +14,13 @@
*/ */
/* /*
* main loop scheduler for APM * main loop scheduler for ArduPilot
* Author: Andrew Tridgell, January 2013 * Author: Andrew Tridgell, January 2013
* *
*/ */
#include "AP_Scheduler_config.h"
#include "AP_Scheduler.h" #include "AP_Scheduler.h"
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>

View File

@ -20,11 +20,7 @@
*/ */
#pragma once #pragma once
#include <AP_HAL/AP_HAL_Boards.h> #include "AP_Scheduler_config.h"
#ifndef AP_SCHEDULER_ENABLED
#define AP_SCHEDULER_ENABLED 1
#endif
#include <AP_Param/AP_Param.h> #include <AP_Param/AP_Param.h>
#include <AP_HAL/Semaphores.h> #include <AP_HAL/Semaphores.h>

View File

@ -0,0 +1,7 @@
#pragma once
#include <AP_HAL/AP_HAL_Boards.h>
#ifndef AP_SCHEDULER_ENABLED
#define AP_SCHEDULER_ENABLED 1
#endif