hwdef.dat 858 B

1234567891011121314151617181920212223242526272829303132333435
  1. # hw definition file for processing by chibios_hwdef.py
  2. # for The CUBE Black and the Cube Purple hardware
  3. # this is based on fmuv3, but with vendor specific USB IDs
  4. include ../fmuv3/hwdef.dat
  5. # USB setup
  6. USB_VENDOR 0x2DAE # ONLY FOR USE BY HEX! NOBODY ELSE
  7. USB_PRODUCT 0x1015
  8. USB_STRING_MANUFACTURER "Hex/ProfiCNC"
  9. USB_STRING_PRODUCT "CubePurple"
  10. USB_STRING_SERIAL "%SERIAL%"
  11. # remap PB0/1 as ADC's
  12. undef PB0
  13. undef PB1
  14. PB0 PB0_ADC ADC1 SCALE(1)
  15. PB1 PB1_ADC ADC1 SCALE(1)
  16. # one non-isolated IMU
  17. IMU Invensense SPI:mpu9250 ROTATION_YAW_270
  18. # alterative newer IMU
  19. IMU Invensensev2 SPI:icm20948 ROTATION_YAW_270
  20. define HAL_DEFAULT_INS_FAST_SAMPLE 1
  21. # one baros
  22. BARO MS56XX SPI:ms5611
  23. # compass as part of the ICM20948
  24. COMPASS AK09916:probe_ICM20948 0 ROTATION_ROLL_180_YAW_90
  25. # also probe for external compasses
  26. define HAL_PROBE_EXTERNAL_I2C_COMPASSES