proton_c.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Proton C MCU settings for converting AVR projects
  2. # These are defaults based on what has been implemented for ARM boards
  3. AUDIO_ENABLE = yes
  4. RGBLIGHT_ENABLE = no
  5. ifneq ($(strip $(LED_MATRIX_ENABLE)), direct)
  6. BACKLIGHT_ENABLE = no
  7. endif
  8. # The rest of these settings shouldn't change
  9. ## chip/board settings
  10. # - the next two should match the directories in
  11. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  12. MCU_FAMILY = STM32
  13. MCU_SERIES = STM32F3xx
  14. # Linker script to use
  15. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  16. # or <this_dir>/ld/
  17. MCU_LDSCRIPT = STM32F303xC
  18. # Startup code to use
  19. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  20. MCU_STARTUP = stm32f3xx
  21. # Board: it should exist either in <chibios>/os/hal/boards/
  22. # or <this_dir>/boards
  23. BOARD = GENERIC_STM32_F303XC
  24. # Cortex version
  25. MCU = cortex-m4
  26. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  27. ARMV = 7
  28. USE_FPU = yes
  29. # Vector table for application
  30. # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
  31. # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
  32. # OPT_DEFS = -DCORTEX_VTOR_INIT=0x08005000
  33. OPT_DEFS =
  34. # Options to pass to dfu-util when flashing
  35. DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
  36. DFU_SUFFIX_ARGS = -p df11 -v 0483