2022-12-11 22:35:44 -04:00
|
|
|
include ../MatekL431/hwdef.inc
|
|
|
|
|
|
|
|
# enable battery monitor
|
|
|
|
define HAL_PERIPH_ENABLE_BATTERY
|
2023-03-06 22:02:49 -04:00
|
|
|
define AP_BATTERY_INA239_ENABLED 1
|
|
|
|
define AP_BATTERY_INA239_SPI_DEVICE "INA23X"
|
2022-12-11 22:35:44 -04:00
|
|
|
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
|
|
|
|
|