Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_EFI/AP_EFI_config.h
9871 views
1
#pragma once
2
3
#include <AP_HAL/AP_HAL_Boards.h>
4
#include <AP_CANManager/AP_CANSensor.h>
5
#include <AP_Scripting/AP_Scripting_config.h>
6
#include <AP_Generator/AP_Generator_config.h>
7
8
#ifndef HAL_EFI_ENABLED
9
#define HAL_EFI_ENABLED HAL_PROGRAM_SIZE_LIMIT_KB > 1024
10
#endif
11
12
#ifndef AP_EFI_BACKEND_DEFAULT_ENABLED
13
#define AP_EFI_BACKEND_DEFAULT_ENABLED HAL_EFI_ENABLED
14
#endif
15
16
#ifndef AP_EFI_CURRAWONG_ECU_ENABLED
17
#define AP_EFI_CURRAWONG_ECU_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED && HAL_MAX_CAN_PROTOCOL_DRIVERS
18
#endif
19
20
#ifndef AP_EFI_DRONECAN_ENABLED
21
#define AP_EFI_DRONECAN_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS
22
#endif
23
24
#ifndef AP_EFI_MAV_ENABLED
25
#define AP_EFI_MAV_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED
26
#endif
27
28
#ifndef AP_EFI_LOWEHEISER_ENABLED
29
#define AP_EFI_LOWEHEISER_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED && AP_GENERATOR_LOWEHEISER_ENABLED
30
#endif
31
32
#ifndef AP_EFI_NWPWU_ENABLED
33
#define AP_EFI_NWPWU_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED && HAL_MAX_CAN_PROTOCOL_DRIVERS
34
#endif
35
36
#ifndef AP_EFI_SCRIPTING_ENABLED
37
#define AP_EFI_SCRIPTING_ENABLED (AP_EFI_BACKEND_DEFAULT_ENABLED && AP_SCRIPTING_ENABLED)
38
#endif
39
40
#ifndef AP_EFI_SERIAL_MS_ENABLED
41
#define AP_EFI_SERIAL_MS_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED
42
#endif
43
44
#ifndef AP_EFI_SERIAL_LUTAN_ENABLED
45
#define AP_EFI_SERIAL_LUTAN_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED
46
#endif
47
48
#ifndef AP_EFI_SERIAL_HIRTH_ENABLED
49
#define AP_EFI_SERIAL_HIRTH_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED
50
#endif
51
52
#ifndef AP_EFI_THROTTLE_LINEARISATION_ENABLED
53
#define AP_EFI_THROTTLE_LINEARISATION_ENABLED AP_EFI_SERIAL_HIRTH_ENABLED
54
#endif
55
56