proton_c.mk 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. WS2812_DRIVER = bitbang
  5. # Force task driven PWM until ARM can provide automatic configuration
  6. ifneq ($(strip $(BACKLIGHT_ENABLE)), no)
  7. BACKLIGHT_ENABLE = software
  8. endif
  9. # The rest of these settings shouldn't change
  10. ## chip/board settings
  11. # - the next two should match the directories in
  12. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  13. MCU_FAMILY = STM32
  14. MCU_SERIES = STM32F3xx
  15. # Linker script to use
  16. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  17. # or <this_dir>/ld/
  18. MCU_LDSCRIPT = STM32F303xC
  19. # Startup code to use
  20. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  21. MCU_STARTUP = stm32f3xx
  22. # Board: it should exist either in <chibios>/os/hal/boards/
  23. # or <this_dir>/boards
  24. BOARD = GENERIC_STM32_F303XC
  25. # Cortex version
  26. MCU = cortex-m4
  27. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  28. ARMV = 7
  29. USE_FPU = yes
  30. # Vector table for application
  31. # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
  32. # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
  33. # OPT_DEFS = -DCORTEX_VTOR_INIT=0x08005000
  34. OPT_DEFS =
  35. # Options to pass to dfu-util when flashing
  36. DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
  37. DFU_SUFFIX_ARGS = -p df11 -v 0483