hwdef.dat 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # hw definition file for processing by chibios_hwdef.py
  2. # for H743 bootloader
  3. # MCU class and specific type
  4. MCU STM32H7xx STM32H743xx
  5. # crystal frequency
  6. OSCILLATOR_HZ 8000000
  7. define STM32_HSE_BYPASS
  8. # board ID for firmware load
  9. APJ_BOARD_ID 139
  10. # the nucleo seems to have trouble with flashing the last sector?
  11. FLASH_SIZE_KB 2048
  12. FLASH_RESERVE_START_KB 128
  13. # board voltage
  14. STM32_VDD 330U
  15. # order of UARTs (and USB)
  16. UART_ORDER OTG1 UART7
  17. PA11 OTG_FS_DM OTG1
  18. PA12 OTG_FS_DP OTG1
  19. PA13 JTMS-SWDIO SWD
  20. PA14 JTCK-SWCLK SWD
  21. # UART7 is debug
  22. PF6 UART7_RX UART7 NODMA
  23. PE8 UART7_TX UART7 NODMA
  24. define HAL_USE_EMPTY_STORAGE 1
  25. define HAL_STORAGE_SIZE 16384
  26. define HAL_SPI_CHECK_CLOCK_FREQ
  27. # sensor CS
  28. PA4 MPU_CS CS
  29. PC7 BARO_CS CS
  30. PB0 LED1 OUTPUT LOW
  31. PB7 LED2 OUTPUT LOW
  32. # SPI1
  33. PA5 SPI1_SCK SPI1
  34. PA6 SPI1_MISO SPI1
  35. PA7 SPI1_MOSI SPI1
  36. # SPI3
  37. PB3 SPI3_SCK SPI3
  38. PB4 SPI3_MISO SPI3
  39. PB5 SPI3_MOSI SPI3
  40. # SPI devices
  41. SPIDEV mpu6000 SPI3 DEVID1 MPU_CS MODE3 2*MHZ 8*MHZ
  42. SPIDEV ms5611 SPI3 DEVID2 BARO_CS MODE3 8*MHZ 8*MHZ
  43. # analog in
  44. PA0 BATT_VOLTAGE_SENS ADC1 SCALE(1)
  45. PA1 BATT_CURRENT_SENS ADC1 SCALE(1)
  46. define ALLOW_ARM_NO_COMPASS
  47. define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
  48. # probe for an invensense IMU
  49. IMU Invensense SPI:mpu6000 ROTATION_NONE
  50. # and ms5611 baro
  51. BARO MS56XX SPI:ms56xx
  52. # define HAL_DISABLE_DCACHE