AP_Generator: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED

This commit is contained in:
Peter Barker 2021-09-24 13:10:47 +10:00 committed by Peter Barker
parent f71b4ec568
commit 5433cbe9a5
12 changed files with 14 additions and 14 deletions

View File

@ -15,7 +15,7 @@
#include "AP_Generator.h"
#if GENERATOR_ENABLED
#if HAL_GENERATOR_ENABLED
#include "AP_Generator_IE_650_800.h"
#include "AP_Generator_IE_2400.h"

View File

@ -2,11 +2,11 @@
#include <AP_HAL/AP_HAL.h>
#ifndef GENERATOR_ENABLED
#define GENERATOR_ENABLED !HAL_MINIMIZE_FEATURES && !defined(HAL_BUILD_AP_PERIPH)
#ifndef HAL_GENERATOR_ENABLED
#define HAL_GENERATOR_ENABLED !HAL_MINIMIZE_FEATURES && !defined(HAL_BUILD_AP_PERIPH)
#endif
#if GENERATOR_ENABLED
#if HAL_GENERATOR_ENABLED
#include <AP_Param/AP_Param.h>
#include <GCS_MAVLink/GCS.h>

View File

@ -14,7 +14,7 @@
*/
#include "AP_Generator_Backend.h"
#if GENERATOR_ENABLED
#if HAL_GENERATOR_ENABLED
// Base class consructor
AP_Generator_Backend::AP_Generator_Backend(AP_Generator& frontend) :

View File

@ -2,7 +2,7 @@
#include "AP_Generator.h"
#if GENERATOR_ENABLED
#if HAL_GENERATOR_ENABLED
class AP_Generator_Backend
{

View File

@ -15,7 +15,7 @@
#include "AP_Generator_IE_2400.h"
#if GENERATOR_ENABLED
#if HAL_GENERATOR_ENABLED
#include <AP_Logger/AP_Logger.h>

View File

@ -2,7 +2,7 @@
#include "AP_Generator_IE_FuelCell.h"
#if GENERATOR_ENABLED
#if HAL_GENERATOR_ENABLED
class AP_Generator_IE_2400 : public AP_Generator_IE_FuelCell
{

View File

@ -15,7 +15,7 @@
#include "AP_Generator_IE_650_800.h"
#if GENERATOR_ENABLED
#if HAL_GENERATOR_ENABLED
extern const AP_HAL::HAL& hal;

View File

@ -2,7 +2,7 @@
#include "AP_Generator_IE_FuelCell.h"
#if GENERATOR_ENABLED
#if HAL_GENERATOR_ENABLED
class AP_Generator_IE_650_800 : public AP_Generator_IE_FuelCell
{

View File

@ -16,7 +16,7 @@
#include "AP_Generator_IE_FuelCell.h"
#include <AP_SerialManager/AP_SerialManager.h>
#if GENERATOR_ENABLED
#if HAL_GENERATOR_ENABLED
// Initialize the fuelcell object and prepare it for use
void AP_Generator_IE_FuelCell::init()

View File

@ -2,7 +2,7 @@
#include "AP_Generator_Backend.h"
#if GENERATOR_ENABLED
#if HAL_GENERATOR_ENABLED
#include <AP_Param/AP_Param.h>
#include <GCS_MAVLink/GCS.h>

View File

@ -15,7 +15,7 @@
#include "AP_Generator_RichenPower.h"
#if GENERATOR_ENABLED
#if HAL_GENERATOR_ENABLED
#include <AP_Logger/AP_Logger.h>
#include <AP_SerialManager/AP_SerialManager.h>

View File

@ -3,7 +3,7 @@
#include "AP_Generator_Backend.h"
#if GENERATOR_ENABLED
#if HAL_GENERATOR_ENABLED
#include <AP_Common/AP_Common.h>
#include <SRV_Channel/SRV_Channel.h>