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