AP_HAL_ESP32: fix build esp32icarus
This commit is contained in:
parent
ebc9616e00
commit
90cc4087e8
@ -14,8 +14,9 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define HAL_INS_DEFAULT HAL_INS_MPU60XX_SPI
|
||||
#define HAL_INS_DEFAULT AP_FEATURE_BOARD_DETECT
|
||||
#define HAL_INS_MPU60x0_NAME "MPU6000"
|
||||
#define TRUE 1
|
||||
|
||||
#define HAL_BARO_DEFAULT HAL_BARO_BMP280_I2C
|
||||
#define HAL_BARO_BMP280_BUS 0
|
||||
@ -23,9 +24,12 @@
|
||||
|
||||
#define ALLOW_ARM_NO_COMPASS
|
||||
|
||||
#define HAL_ESP32_SDCARD 1
|
||||
#define HAL_ESP32_SDCARD //after enabled, uncomment one of below
|
||||
#define HAL_ESP32_SDMMC
|
||||
//#define HAL_ESP32_SDSPI {.host=VSPI_HOST, .dma_ch=2, .mosi=GPIO_NUM_2, .miso=GPIO_NUM_15, .sclk=GPIO_NUM_26, .cs=GPIO_NUM_21}
|
||||
#define HAL_OS_POSIX_IO 1
|
||||
#define HAL_BOARD_LOG_DIRECTORY "/SDCARD/APM/LOGS"
|
||||
#define HAL_BOARD_STORAGE_DIRECTORY "/SDCARD/APM/STORAGE"
|
||||
#define HAL_BOARD_TERRAIN_DIRECTORY "/SDCARD/APM/TERRAIN"
|
||||
|
||||
#define HAL_ESP32_WIFI 1
|
||||
@ -50,3 +54,5 @@
|
||||
{.port=UART_NUM_1, .rx=GPIO_NUM_34, .tx=GPIO_NUM_32},\
|
||||
{.port=UART_NUM_2, .rx=GPIO_NUM_35, .tx=GPIO_NUM_33}
|
||||
|
||||
#define HAL_DISABLE_ADC_DRIVER 1
|
||||
#define HAL_USE_ADC 0
|
||||
|
0
libraries/AP_HAL_ESP32/hwdef/esp32icarus/hwdef.dat
Normal file
0
libraries/AP_HAL_ESP32/hwdef/esp32icarus/hwdef.dat
Normal file
Loading…
Reference in New Issue
Block a user