rules.mk 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # project specific files
  2. SRC = led.c
  3. LAYOUTS += 60_ansi 60_ansi_split_bs_rshift 60_iso
  4. ## chip/board settings
  5. # - the next two should match the directories in
  6. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  7. MCU_FAMILY = STM32
  8. MCU_SERIES = STM32F3xx
  9. # Linker script to use
  10. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  11. # or <this_dir>/ld/
  12. MCU_LDSCRIPT = STM32F303xC
  13. # Startup code to use
  14. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  15. MCU_STARTUP = stm32f3xx
  16. # Board: it should exist either in <chibios>/os/hal/boards/
  17. # or <this_dir>/boards
  18. BOARD = GENERIC_STM32_F303XC
  19. # Cortex version
  20. MCU = cortex-m4
  21. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  22. ARMV = 7
  23. USE_FPU = yes
  24. # Vector table for application
  25. # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
  26. OPT_DEFS =
  27. # Options to pass to dfu-util when flashing
  28. DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
  29. DFU_SUFFIX_ARGS = -p DF11 -v 0483
  30. # Build Options
  31. # comment out to disable the options.
  32. #
  33. BACKLIGHT_ENABLE = no
  34. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
  35. MOUSEKEY_ENABLE = yes # Mouse keys
  36. EXTRAKEY_ENABLE = yes # Audio control and System control
  37. CONSOLE_ENABLE = yes # Console for debug
  38. COMMAND_ENABLE = no # Commands for debug and configuration
  39. NKRO_ENABLE = yes # USB Nkey Rollover
  40. AUDIO_ENABLE = yes