Browse Source

HAL_ChibiOS: hwdef: add hwdef for CubeBlack+

master
bugobliterator 6 years ago committed by Andrew Tridgell
parent
commit
e82da992c9
  1. 7
      libraries/AP_HAL_ChibiOS/hwdef/CubeBlack+/defaults.parm
  2. 16
      libraries/AP_HAL_ChibiOS/hwdef/CubeBlack+/hwdef-bl.dat
  3. 8
      libraries/AP_HAL_ChibiOS/hwdef/CubeBlack+/hwdef.dat

7
libraries/AP_HAL_ChibiOS/hwdef/CubeBlack+/defaults.parm

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
# setup correct defaults for battery monitoring for cube power brick
BATT2_CURR_PIN 14
BATT2_VOLT_PIN 13
BATT_AMP_PERVLT 39.877
BATT_VOLT_MULT 12.02
BATT2_AMP_PERVLT 39.877
BATT2_VOLT_MULT 12.02

16
libraries/AP_HAL_ChibiOS/hwdef/CubeBlack+/hwdef-bl.dat

@ -0,0 +1,16 @@ @@ -0,0 +1,16 @@
# hw definition file for processing by chibios_hwdef.py
# for The CUBE Black and the Cube Purple hardware
# this is based on fmuv3, but with vendor specific USB IDs
include ../fmuv3/hwdef-bl.dat
# USB setup
USB_VENDOR 0x2DAE # ONLY FOR USE BY HEX! NOBODY ELSE
USB_PRODUCT 0x1101
USB_STRING_MANUFACTURER "Hex/ProfiCNC"
USB_STRING_PRODUCT "CubeBlack+-BL"
USB_STRING_SERIAL "%SERIAL%"
# disable peripheral and sensor power in the bootloader
PA8 nVDD_5V_PERIPH_EN OUTPUT HIGH
PE3 VDD_3V3_SENSORS_EN OUTPUT LOW

8
libraries/AP_HAL_ChibiOS/hwdef/CubeBlack+/hwdef.dat

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
# hw definition file for processing by chibios_hwdef.py
# for The CUBE Black and the Cube Purple hardware
# this is based on fmuv3, but with vendor specific USB IDs
include ../CubeBlack/hwdef.dat
undef ROMFS
ROMFS io_firmware.bin Tools/IO_Firmware/iofirmware_highpolh.bin
Loading…
Cancel
Save