2016-09-24 07:42:22 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define HAL_BOARD_NAME "SITL"
|
|
|
|
#define HAL_CPU_CLASS HAL_CPU_CLASS_1000
|
|
|
|
#define HAL_OS_POSIX_IO 1
|
|
|
|
#define HAL_OS_SOCKETS 1
|
|
|
|
#define HAL_STORAGE_SIZE 16384
|
|
|
|
#define HAL_STORAGE_SIZE_AVAILABLE HAL_STORAGE_SIZE
|
|
|
|
#define HAL_BOARD_LOG_DIRECTORY "logs"
|
|
|
|
#define HAL_BOARD_TERRAIN_DIRECTORY "terrain"
|
2017-02-08 21:48:35 -04:00
|
|
|
#define HAL_PARAM_DEFAULTS_PATH nullptr
|
2016-09-24 07:42:22 -03:00
|
|
|
#define HAL_INS_DEFAULT HAL_INS_HIL
|
|
|
|
#define HAL_BARO_DEFAULT HAL_BARO_HIL
|
|
|
|
#define HAL_COMPASS_DEFAULT HAL_COMPASS_HIL
|
|
|
|
#define HAL_GPIO_A_LED_PIN 61
|
|
|
|
#define HAL_GPIO_B_LED_PIN 48
|
|
|
|
#define HAL_GPIO_C_LED_PIN 117
|
2018-02-11 17:51:12 -04:00
|
|
|
#define HAL_GPIO_LED_ON 0
|
|
|
|
#define HAL_GPIO_LED_OFF 1
|
2016-09-24 07:42:22 -03:00
|
|
|
|
2017-03-20 14:57:14 -03:00
|
|
|
#define HAL_HAVE_BOARD_VOLTAGE 1
|
2018-06-29 14:55:45 -03:00
|
|
|
#define HAL_HAVE_SAFETY_SWITCH 0
|
2018-08-07 03:37:37 -03:00
|
|
|
|
|
|
|
// allow for static semaphores
|
|
|
|
#include <AP_HAL_SITL/Semaphores.h>
|
|
|
|
#define HAL_Semaphore HALSITL::Semaphore
|
2018-08-19 22:07:02 -03:00
|
|
|
#define HAL_Semaphore_Recursive HALSITL::Semaphore_Recursive
|
|
|
|
|