AP_HAL: reformat AP_HAL_Boards.h

The definitions for each board haven't been reformatted here. They need a
little more thinking on how to format them in order to provide better
readability.
This commit is contained in:
Gustavo Jose de Sousa 2016-08-30 12:59:12 -03:00 committed by Lucas De Marchi
parent 6a9addb2a8
commit 5c5ddc9d4a

View File

@ -1,11 +1,10 @@
#pragma once
/**
* C preprocesor enumeration of the boards supported by the AP_HAL.
* This list exists so HAL_BOARD == HAL_BOARD_xxx preprocessor blocks
* can be used to exclude HAL boards from the build when appropriate.
* Its not an elegant solution but we can improve it in future.
*/
#pragma once
#define HAL_BOARD_SITL 3
#define HAL_BOARD_SMACCM 4 // unused
@ -15,12 +14,10 @@
#define HAL_BOARD_QURT 9
#define HAL_BOARD_EMPTY 99
// default board subtype is -1
/* Default board subtype is -1 */
#define HAL_BOARD_SUBTYPE_NONE -1
/**
HAL Linux sub-types, starting at 1000
*/
/* HAL Linux sub-types, starting at 1000 */
#define HAL_BOARD_SUBTYPE_LINUX_NONE 1000
#define HAL_BOARD_SUBTYPE_LINUX_ERLEBOARD 1001
#define HAL_BOARD_SUBTYPE_LINUX_PXF 1002
@ -38,15 +35,11 @@
#define HAL_BOARD_SUBTYPE_LINUX_DISCO 1014
#define HAL_BOARD_SUBTYPE_LINUX_AERO 1015
/**
HAL PX4 sub-types, starting at 2000
*/
/* HAL PX4 sub-types, starting at 2000 */
#define HAL_BOARD_SUBTYPE_PX4_V1 2000
#define HAL_BOARD_SUBTYPE_PX4_V2 2001
/**
HAL VRBRAIN sub-types, starting at 4000
*/
/* HAL VRBRAIN sub-types, starting at 4000 */
#define HAL_BOARD_SUBTYPE_VRBRAIN_V45 4000
#define HAL_BOARD_SUBTYPE_VRBRAIN_V51 4001
#define HAL_BOARD_SUBTYPE_VRBRAIN_V52 4002
@ -55,7 +48,7 @@
#define HAL_BOARD_SUBTYPE_VRCORE_V10 4005
#define HAL_BOARD_SUBTYPE_VRBRAIN_V54 4006
// InertialSensor driver types
/* InertialSensor driver types */
#define HAL_INS_MPU60XX_SPI 2
#define HAL_INS_MPU60XX_I2C 3
#define HAL_INS_HIL 4
@ -73,7 +66,7 @@
#define HAL_INS_BBBMINI 17
#define HAL_INS_AERO 18
// barometer driver types
/* Barometer driver types */
#define HAL_BARO_BMP085 1
#define HAL_BARO_MS5611_I2C 2
#define HAL_BARO_MS5611_SPI 3
@ -85,7 +78,7 @@
#define HAL_BARO_QFLIGHT 9
#define HAL_BARO_QURT 10
// compass driver types
/* Compass driver types */
#define HAL_COMPASS_HMC5843 1
#define HAL_COMPASS_PX4 2
#define HAL_COMPASS_HIL 3
@ -103,30 +96,30 @@
#define HAL_COMPASS_NAVIO 15
#define HAL_COMPASS_AERO 16
// Heat Types
/* Heat Types */
#define HAL_LINUX_HEAT_PWM 1
/**
CPU classes, used to select if CPU intensive algorithms should be used
/* CPU classes, used to select if CPU intensive algorithms should be used
* Note that these are only approximate, not exact CPU speeds. */
Note that these are only approximate, not exact CPU speeds.
*/
#define HAL_CPU_CLASS_16 1 // DEPRECATED: 16Mhz, AVR2560 or similar
#define HAL_CPU_CLASS_150 3 // 150Mhz, PX4 or similar, assumes
// hardware floating point. Assumes tens
// of kilobytes of memory available
#define HAL_CPU_CLASS_1000 4 // GigaHz class, SITL, BeagleBone etc,
// assumes megabytes of memory available
/* DEPRECATED: 16Mhz: AVR2560 or similar */
#define HAL_CPU_CLASS_16 1
/* 150Mhz: PX4 or similar. Assumes:
* - hardware floating point
* - tens of kilobytes of memory available */
#define HAL_CPU_CLASS_150 3
/* GigaHz class: SITL, BeagleBone etc. Assumes megabytes of memory available. */
#define HAL_CPU_CLASS_1000 4
/**
operating system features:
/* Operating system features
*
* HAL implementations may define the following extra feature defines to 1 if
* available:
*
* - HAL_OS_POSIX_IO : has posix-like filesystem IO
* - HAL_OS_SOCKETS : has posix-like sockets */
HAL implementations may define the following extra feature defines
to 1 if available
HAL_OS_POSIX_IO : has posix-like filesystem IO
HAL_OS_SOCKETS : has posix-like sockets
*/
/* DEFINITIONS FOR BOARDS */
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#define HAL_BOARD_NAME "SITL"