APM:Libraries
libraries
AP_HAL
board
f4light.h
Go to the documentation of this file.
1
#include <
AP_HAL_F4Light/hardware/hal/syscalls.h
>
2
#include <
AP_HAL_F4Light/params.h
>
3
#include <
AP_HAL_F4Light/wirish/boards.h
>
4
5
#define HAL_NEEDS_PARAM_HELPER
6
7
#define AP_HAL_BOARD_DRIVER AP_HAL_F4Light
8
#define HAL_SERIAL0_BAUD_DEFAULT (115200)
9
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_NONE
10
11
12
#define HAL_BOARD_NAME BOARD_OWN_NAME
13
14
#define HAL_CPU_CLASS HAL_CPU_CLASS_150
15
#define HAL_OS_POSIX_IO 0
16
17
#define HAL_STORAGE_SIZE BOARD_STORAGE_SIZE // EEPROM size
18
19
#define HAL_BARO_DEFAULT BOARD_BARO_DEFAULT
20
21
#define HAL_COMPASS_DEFAULT BOARD_COMPASS_DEFAULT
22
23
#define HAL_INS_DEFAULT BOARD_INS_DEFAULT
24
#define HAL_INS_DEFAULT_ROTATION BOARD_INS_ROTATION
25
#define HAL_INS_MPU60x0_NAME BOARD_INS_MPU60x0_NAME
26
27
#define INVENSENSE_DRDY_PIN BOARD_MPU6000_DRDY_PIN
28
// via interrupt
29
30
#ifdef BOARD_HMC5883_DRDY_PIN
31
#define HMC5883_DRDY_PIN BOARD_HMC5883_DRDY_PIN
32
#endif
33
34
#ifdef BOARD_DATAFLASH_NAME
35
#define HAL_DATAFLASH_NAME BOARD_DATAFLASH_NAME
36
#endif
37
38
39
#ifdef BOARD_BUZZER_PIN
40
#define HAL_BUZZER_PIN BOARD_BUZZER_PIN
41
#endif
42
43
# define PUSHBUTTON_PIN BOARD_PUSHBUTTON_PIN
44
# define USB_MUX_PIN BOARD_USB_MUX_PIN
45
# define BATTERY_VOLT_PIN BOARD_BATTERY_VOLT_PIN // Battery voltage on A0 (PC2) D8
46
# define BATTERY_CURR_PIN BOARD_BATTERY_CURR_PIN // Battery current on A1 (PC1) D7
47
# define CONFIG_SONAR_SOURCE_ANALOG_PIN BOARD_SONAR_SOURCE_ANALOG_PIN
48
49
50
51
#undef TOSHIBA_LED_I2C_BUS // someone placed this not in board config
52
#define TOSHIBA_LED_I2C_ADDR 0x55 // default I2C bus address
53
#define TOSHIBA_LED_I2C_BUS 2 // external I2C
54
55
56
#define HAL_MINIMIZE_FEATURES 1
57
#define DEVO_TELEM_ENABLED ENABLED
58
59
#define AC_TERRAIN DISABLED // no SD card with POSIX IO
60
#define PRECISION_LANDING DISABLED
61
#define CONFIG_PUSHBUTTON DISABLED
62
#define SPRAYER DISABLED
63
#define EPM_ENABLED DISABLED
64
#define CLI_ENABLED DISABLED
65
#define GRIPPER_ENABLED DISABLED // not for large quads
66
#define WINCH_ENABLED DISABLED
67
68
69
// disable for debugging with -O0
70
// #define FRSKY_TELEM_ENABLED DISABLED
71
// #define CAMERA DISABLED
72
// #define CONFIG_RELAY DISABLED
73
// #define MOUNT DISABLED
74
// #define ADSB_ENABLED DISABLED
75
76
#define LOGGING_ENABLED ENABLED
77
78
// exclude some useless modes
79
#define MODE_SPORT_ENABLED DISABLE
80
#define MODE_DRIFT_ENABLED DISABLE
81
#define MODE_BRAKE_ENABLED DISABLE
82
#define MODE_GUIDED_NOGPS_ENABLED DISABLE
83
84
85
#define STATS_ENABLED DISABLED // to reduce flash degradation
syscalls.h
params.h
boards.h
Board-specific pin information.
Generated on Sun Jun 17 2018 14:18:48 for APM:Libraries by
1.8.13