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_BoardConfig/AP_BoardConfig_config.h
Views: 1798
1
#pragma once
2
3
#include <AP_HAL/AP_HAL.h>
4
#include <AP_Filesystem/AP_Filesystem_config.h>
5
6
#ifndef AP_FEATURE_BOARD_DETECT
7
#if defined(HAL_CHIBIOS_ARCH_FMUV3) || defined(HAL_CHIBIOS_ARCH_FMUV4) || defined(HAL_CHIBIOS_ARCH_FMUV5) || defined(HAL_CHIBIOS_ARCH_MINDPXV2) || defined(HAL_CHIBIOS_ARCH_FMUV4PRO) || defined(HAL_CHIBIOS_ARCH_BRAINV51) || defined(HAL_CHIBIOS_ARCH_BRAINV52) || defined(HAL_CHIBIOS_ARCH_UBRAINV51) || defined(HAL_CHIBIOS_ARCH_COREV10) || defined(HAL_CHIBIOS_ARCH_BRAINV54)
8
#define AP_FEATURE_BOARD_DETECT 1
9
#else
10
#define AP_FEATURE_BOARD_DETECT 0
11
#endif
12
#endif
13
14
#ifndef AP_FEATURE_RTSCTS
15
#define AP_FEATURE_RTSCTS 0
16
#endif
17
18
#ifndef AP_FEATURE_SBUS_OUT
19
#define AP_FEATURE_SBUS_OUT 0
20
#endif
21
22
#ifndef HAL_WATCHDOG_ENABLED_DEFAULT
23
#define HAL_WATCHDOG_ENABLED_DEFAULT false
24
#endif
25
26
#if HAL_HAVE_IMU_HEATER
27
#ifndef HAL_IMUHEAT_P_DEFAULT
28
#define HAL_IMUHEAT_P_DEFAULT 200
29
#endif
30
#ifndef HAL_IMUHEAT_I_DEFAULT
31
#define HAL_IMUHEAT_I_DEFAULT 0.3
32
#endif
33
#endif
34
35
#ifndef AP_SDCARD_STORAGE_ENABLED
36
#define AP_SDCARD_STORAGE_ENABLED (HAL_MEM_CLASS >= HAL_MEM_CLASS_1000) && (AP_FILESYSTEM_POSIX_ENABLED || AP_FILESYSTEM_FATFS_ENABLED) && BOARD_FLASH_SIZE > 1024
37
#endif
38
39