CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_EFI/AP_EFI_config.h
Views: 1798
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
7
#ifndef HAL_EFI_ENABLED
8
#define HAL_EFI_ENABLED BOARD_FLASH_SIZE > 1024
9
#endif
10
11
#ifndef AP_EFI_BACKEND_DEFAULT_ENABLED
12
#define AP_EFI_BACKEND_DEFAULT_ENABLED HAL_EFI_ENABLED
13
#endif
14
15
#ifndef AP_EFI_CURRAWONG_ECU_ENABLED
16
#define AP_EFI_CURRAWONG_ECU_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED && HAL_MAX_CAN_PROTOCOL_DRIVERS
17
#endif
18
19
#ifndef AP_EFI_DRONECAN_ENABLED
20
#define AP_EFI_DRONECAN_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS
21
#endif
22
23
#ifndef AP_EFI_MAV_ENABLED
24
#define AP_EFI_MAV_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED
25
#endif
26
27
#ifndef AP_EFI_NWPWU_ENABLED
28
#define AP_EFI_NWPWU_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED && HAL_MAX_CAN_PROTOCOL_DRIVERS
29
#endif
30
31
#ifndef AP_EFI_SCRIPTING_ENABLED
32
#define AP_EFI_SCRIPTING_ENABLED (AP_EFI_BACKEND_DEFAULT_ENABLED && AP_SCRIPTING_ENABLED)
33
#endif
34
35
#ifndef AP_EFI_SERIAL_MS_ENABLED
36
#define AP_EFI_SERIAL_MS_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED
37
#endif
38
39
#ifndef AP_EFI_SERIAL_LUTAN_ENABLED
40
#define AP_EFI_SERIAL_LUTAN_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED
41
#endif
42
43
#ifndef AP_EFI_SERIAL_HIRTH_ENABLED
44
#define AP_EFI_SERIAL_HIRTH_ENABLED AP_EFI_BACKEND_DEFAULT_ENABLED
45
#endif
46
47
#ifndef AP_EFI_THROTTLE_LINEARISATION_ENABLED
48
#define AP_EFI_THROTTLE_LINEARISATION_ENABLED AP_EFI_SERIAL_HIRTH_ENABLED
49
#endif
50
51