HAL_ChibiOS: hwdef: add hwdef for CubeBlack+

This commit is contained in:
bugobliterator 2019-09-10 16:40:32 +08:00 committed by Andrew Tridgell
parent ee6f912217
commit e82da992c9
3 changed files with 31 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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