2021-05-19 23:17:46 -03:00
|
|
|
include ../f303-periph/hwdef.inc
|
2020-04-29 18:48:41 -03:00
|
|
|
|
|
|
|
# mRo Location One CAN GPS
|
2020-11-08 00:07:51 -04:00
|
|
|
# M10070B
|
2020-04-29 18:48:41 -03:00
|
|
|
|
|
|
|
# start as DNA
|
|
|
|
define HAL_CAN_DEFAULT_NODE_ID 0
|
|
|
|
|
|
|
|
define CAN_APP_NODE_NAME "io.mrobotics.m10070_loc1"
|
|
|
|
|
|
|
|
# added rm3100 mag on SPI
|
|
|
|
SPIDEV rm3100 SPI1 DEVID1 MAG_CS MODE0 1*MHZ 1*MHZ
|
2020-11-08 00:07:51 -04:00
|
|
|
COMPASS RM3100 SPI:rm3100 false ROTATION_NONE
|
2020-04-29 18:48:41 -03:00
|
|
|
|
2020-11-07 16:29:33 -04:00
|
|
|
# an I2C baro (DPS310)
|
|
|
|
BARO DPS280 I2C:0:0x77
|
|
|
|
|
2020-04-29 18:48:41 -03:00
|
|
|
# GPS+MAG+LED+Baro
|
|
|
|
define HAL_PERIPH_ENABLE_GPS
|
|
|
|
define HAL_PERIPH_ENABLE_MAG
|
2020-12-22 04:16:12 -04:00
|
|
|
define HAL_PERIPH_ENABLE_NCP5623_BGR_LED_WITHOUT_NOTIFY
|
2020-11-07 16:29:33 -04:00
|
|
|
define HAL_PERIPH_ENABLE_BARO
|
2020-04-29 18:48:41 -03:00
|
|
|
|
|
|
|
# Optional I2C Airspeed sensor connected to I2C connector
|
|
|
|
define HAL_PERIPH_ENABLE_AIRSPEED
|
|
|
|
|
|
|
|
# Safety button
|
|
|
|
PC13 SAFE_BUTTON INPUT PULLUP
|
|
|
|
# Button is active LOW
|
|
|
|
define HAL_SAFE_BUTTON_ON 0
|
|
|
|
|
|
|
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
|
|
|
|