mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-13 10:03:57 -03:00
AP_Torqeedo: add and use AP_Generator_config.h
This commit is contained in:
parent
adc4bf66f8
commit
ff0c4133c6
@ -44,11 +44,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include "AP_Torqeedo_config.h"
|
||||||
|
|
||||||
#ifndef HAL_TORQEEDO_ENABLED
|
|
||||||
#define HAL_TORQEEDO_ENABLED !HAL_MINIMIZE_FEATURES && (BOARD_FLASH_SIZE > 1024) && !defined(HAL_BUILD_AP_PERIPH)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if HAL_TORQEEDO_ENABLED
|
#if HAL_TORQEEDO_ENABLED
|
||||||
|
|
||||||
|
7
libraries/AP_Torqeedo/AP_Torqeedo_config.h
Normal file
7
libraries/AP_Torqeedo/AP_Torqeedo_config.h
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <AP_HAL/AP_HAL_Boards.h>
|
||||||
|
|
||||||
|
#ifndef HAL_TORQEEDO_ENABLED
|
||||||
|
#define HAL_TORQEEDO_ENABLED !HAL_MINIMIZE_FEATURES && (BOARD_FLASH_SIZE > 1024) && !defined(HAL_BUILD_AP_PERIPH)
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user