proton_c.mk 1.3 KB

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