mirror of https://github.com/ArduPilot/ardupilot
hwdef: added MatekL431-BattMon firmware
This commit is contained in:
parent
51acbadcec
commit
8e93265928
|
@ -0,0 +1,3 @@
|
|||
include ../MatekL431/hwdef-bl.inc
|
||||
|
||||
define CAN_APP_NODE_NAME "org.ardupilot.MatekL431-BattMon"
|
|
@ -0,0 +1,22 @@
|
|||
include ../MatekL431/hwdef.inc
|
||||
|
||||
define CAN_APP_NODE_NAME "org.ardupilot.MatekL431-BattMon"
|
||||
|
||||
# enable battery monitor
|
||||
define HAL_PERIPH_ENABLE_BATTERY
|
||||
define HAL_BATTMON_INA239_ENABLED 1
|
||||
define HAL_BATTMON_INA239_SPI_DEVICE "INA23X"
|
||||
define HAL_BATT_MONITOR_DEFAULT 26
|
||||
define AP_PERIPH_BATTERY_MODEL_NAME "MatekL431-BattMon"
|
||||
|
||||
SPIDEV INA23X SPI1 DEVID1 SPARE_CS MODE1 10*MHZ 10*MHZ
|
||||
|
||||
# no ADC pins
|
||||
define HAL_USE_ADC FALSE
|
||||
|
||||
# disable unnecessary threads
|
||||
define HAL_NO_MONITOR_THREAD
|
||||
define HAL_NO_RCIN_THREAD
|
||||
define HAL_NO_RCOUT_THREAD
|
||||
define HAL_NO_TIMER_THREAD
|
||||
|
Loading…
Reference in New Issue