hwdef-bl.dat 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # hw definition file for processing by chibios_hwdef.py
  2. # CUAVv5Nano
  3. # MCU class and specific type
  4. MCU STM32F7xx STM32F767xx
  5. # crystal frequency
  6. OSCILLATOR_HZ 16000000
  7. define STM32_LSECLK 32768U
  8. define STM32_LSEDRV (3U << 3U)
  9. define STM32_PLLSRC STM32_PLLSRC_HSE
  10. define STM32_PLLM_VALUE 8
  11. define STM32_PLLN_VALUE 216
  12. define STM32_PLLP_VALUE 2
  13. define STM32_PLLQ_VALUE 9
  14. # board ID for firmware load
  15. APJ_BOARD_ID 50
  16. FLASH_SIZE_KB 2048
  17. # bootloader is installed at zero offset
  18. FLASH_RESERVE_START_KB 0
  19. # the location where the bootloader will put the firmware
  20. FLASH_BOOTLOADER_LOAD_KB 32
  21. # start with PE3 low
  22. undef PE3
  23. PE3 VDD_3V3_SENSORS_EN OUTPUT LOW
  24. PC6 LED_BOOTLOADER OUTPUT HIGH
  25. PC7 LED_ACTIVITY OUTPUT HIGH
  26. define HAL_LED_ON 0
  27. # board voltage
  28. STM32_VDD 330U
  29. # order of UARTs (and USB)
  30. UART_ORDER OTG1 USART2 UART7
  31. # USART2 is telem1
  32. PD6 USART2_RX USART2
  33. PD5 USART2_TX USART2
  34. PD3 USART2_CTS USART2
  35. PD4 USART2_RTS USART2
  36. PF6 UART7_RX UART7 NODMA
  37. PE8 UART7_TX UART7 NODMA
  38. PA11 OTG_FS_DM OTG1
  39. PA12 OTG_FS_DP OTG1
  40. PA13 JTMS-SWDIO SWD
  41. PA14 JTCK-SWCLK SWD
  42. define HAL_USE_EMPTY_STORAGE 1
  43. define HAL_STORAGE_SIZE 16384