Siddharth Purohit
6 years ago
committed by
Andrew Tridgell
3 changed files with 44 additions and 0 deletions
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
# 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 |
||||
BRD_TYPE 6 |
@ -0,0 +1,18 @@
@@ -0,0 +1,18 @@
|
||||
# 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 0x1005 |
||||
USB_STRING_MANUFACTURER "Hex/ProfiCNC" |
||||
USB_STRING_PRODUCT "CubePurple-BL" |
||||
USB_STRING_SERIAL "%SERIAL%" |
||||
|
||||
PA0 GPS_PIN1 OUTPUT LOW PULLDOWN |
||||
PA1 GPS_PIN2 OUTPUT LOW PULLDOWN |
||||
PB8 GPS_PIN3 OUTPUT LOW PULLDOWN |
||||
PB9 GPS_PIN4 OUTPUT LOW PULLDOWN |
||||
PB5 GPS_PIN5 OUTPUT LOW PULLDOWN |
@ -0,0 +1,18 @@
@@ -0,0 +1,18 @@
|
||||
# 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.dat |
||||
|
||||
# USB setup |
||||
USB_VENDOR 0x2DAE # ONLY FOR USE BY HEX! NOBODY ELSE |
||||
USB_PRODUCT 0x1015 |
||||
USB_STRING_MANUFACTURER "Hex/ProfiCNC" |
||||
USB_STRING_PRODUCT "CubePurple" |
||||
USB_STRING_SERIAL "%SERIAL%" |
||||
|
||||
# remap PB0/1 as ADC's |
||||
undef PB0 |
||||
undef PB1 |
||||
PB0 PB0_ADC ADC1 SCALE(1) |
||||
PB1 PB1_ADC ADC1 SCALE(1) |
Loading…
Reference in new issue