rules.mk 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 = STM32F4xx
  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 = noah_boot
  10. # Startup code to use
  11. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  12. MCU_STARTUP = stm32f4xx
  13. # Board: it should exist either in <chibios>/os/hal/boards/
  14. # or <this_dir>/boards
  15. BOARD = noah_bd
  16. # Cortex version
  17. MCU = cortex-m4
  18. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  19. ARMV = 7
  20. USE_FPU = yes
  21. # Vector table for application
  22. # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
  23. OPT_DEFS =
  24. # Options to pass to dfu-util when flashing
  25. #DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
  26. #DFU_SUFFIX_ARGS = -p DF11 -v 0483
  27. # Build Options
  28. # comment out to disable the options.
  29. #
  30. BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
  31. MOUSEKEY_ENABLE = no # Mouse keys
  32. EXTRAKEY_ENABLE = yes # Audio control and System control
  33. CONSOLE_ENABLE = no # Console for debug
  34. COMMAND_ENABLE = no # Commands for debug and configuration
  35. NKRO_ENABLE = no # USB Nkey Rollover
  36. NO_USB_STARTUP_CHECK = yes # Disable initialization only when usb is plugged in
  37. CUSTOM_MATRIX = yes
  38. RGB_MATRIX_ENABLE = yes
  39. RGBLIGHT_ENABLE = yes
  40. RGBLIGHT_CUSTOM_DRIVER = yes
  41. # project specific files
  42. SRC += \
  43. matrix.c \
  44. ws2812_f4.c