You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.6 KiB

  1. ## chip/board settings
  2. # - the next two should match the directories in
  3. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  4. MCU_FAMILY = STM32
  5. MCU_SERIES = STM32F0xx
  6. # Linker script to use
  7. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  8. # or <this_dir>/ld/
  9. MCU_LDSCRIPT = STM32F072xB
  10. # Startup code to use
  11. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  12. MCU_STARTUP = stm32f0xx
  13. # Board: it should exist either in <chibios>/os/hal/boards/
  14. # or <this_dir>/boards
  15. BOARD = ST_STM32F072B_DISCOVERY
  16. # Cortex version
  17. MCU = cortex-m0
  18. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  19. ARMV = 6
  20. # Vector table for application
  21. # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
  22. # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
  23. # OPT_DEFS = -DCORTEX_VTOR_INIT=0x08005000
  24. OPT_DEFS =
  25. # Options to pass to dfu-util when flashing
  26. DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
  27. DFU_SUFFIX_ARGS = -p DF11 -v 0483
  28. # Build Options
  29. # comment out to disable the options.
  30. #
  31. EXTRAFLAGS+=-flto
  32. BACKLIGHT_ENABLE = no
  33. BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
  34. ## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
  35. MOUSEKEY_ENABLE = no # Mouse keys
  36. EXTRAKEY_ENABLE = yes # Audio control and System control
  37. CONSOLE_ENABLE = yes # Console for debug
  38. COMMAND_ENABLE = yes # Commands for debug and configuration
  39. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  40. NKRO_ENABLE = yes # USB Nkey Rollover
  41. AUDIO_ENABLE = no
  42. RGBLIGHT_ENABLE = no
  43. SERIAL_LINK_ENABLE = no