diff options
Diffstat (limited to 'keyboards/whitefox/rules.mk')
| -rw-r--r-- | keyboards/whitefox/rules.mk | 40 |
1 files changed, 6 insertions, 34 deletions
diff --git a/keyboards/whitefox/rules.mk b/keyboards/whitefox/rules.mk index 27c3c3141..14507e9dd 100644 --- a/keyboards/whitefox/rules.mk +++ b/keyboards/whitefox/rules.mk | |||
| @@ -1,15 +1,5 @@ | |||
| 1 | # project specific files | 1 | # MCU name |
| 2 | SRC = matrix.c \ | 2 | MCU = MK20DX256 |
| 3 | led.c | ||
| 4 | |||
| 5 | ## chip/board settings | ||
| 6 | # - the next two should match the directories in | ||
| 7 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
| 8 | # - For Teensies, FAMILY = KINETIS and SERIES is either | ||
| 9 | # KL2x (LC) or K20x (3.0,3.1,3.2). | ||
| 10 | # - For Infinity KB, SERIES = K20x | ||
| 11 | MCU_FAMILY = KINETIS | ||
| 12 | MCU_SERIES = K20x | ||
| 13 | 3 | ||
| 14 | # Linker script to use | 4 | # Linker script to use |
| 15 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | 5 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ |
| @@ -23,14 +13,6 @@ MCU_SERIES = K20x | |||
| 23 | # - MK20DX256BLDR8 for Infinity ErgoDox with Kiibohd bootloader | 13 | # - MK20DX256BLDR8 for Infinity ErgoDox with Kiibohd bootloader |
| 24 | MCU_LDSCRIPT = MK20DX256BLDR8 | 14 | MCU_LDSCRIPT = MK20DX256BLDR8 |
| 25 | 15 | ||
| 26 | # Startup code to use | ||
| 27 | # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
| 28 | # - STARTUP = | ||
| 29 | # - kl2x for Teensy LC | ||
| 30 | # - k20x5 for Teensy 3.0 and Infinity KB | ||
| 31 | # - k20x7 for Teensy 3.1 and 3.2 | ||
| 32 | MCU_STARTUP = k20x7 | ||
| 33 | |||
| 34 | # Board: it should exist either in <chibios>/os/hal/boards/ | 16 | # Board: it should exist either in <chibios>/os/hal/boards/ |
| 35 | # or <this_dir>/boards | 17 | # or <this_dir>/boards |
| 36 | # - BOARD = | 18 | # - BOARD = |
| @@ -40,20 +22,6 @@ MCU_STARTUP = k20x7 | |||
| 40 | # - MCHCK_K20 for Infinity KB | 22 | # - MCHCK_K20 for Infinity KB |
| 41 | BOARD = IC_TEENSY_3_1 | 23 | BOARD = IC_TEENSY_3_1 |
| 42 | 24 | ||
| 43 | # Cortex version | ||
| 44 | # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4 | ||
| 45 | MCU = cortex-m4 | ||
| 46 | |||
| 47 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
| 48 | # I.e. 6 for Teensy LC; 7 for Teensy 3.x | ||
| 49 | ARMV = 7 | ||
| 50 | |||
| 51 | # Vector table for application | ||
| 52 | # 0x00000000-0x00001000 area is occupied by bootlaoder.*/ | ||
| 53 | # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB | ||
| 54 | #OPT_DEFS = -DCORTEX_VTOR_INIT=0x00001000 | ||
| 55 | OPT_DEFS = | ||
| 56 | |||
| 57 | DFU_ARGS = -d 1c11:b007 | 25 | DFU_ARGS = -d 1c11:b007 |
| 58 | DFU_SUFFIX_ARGS = -p b007 -v 1c11 | 26 | DFU_SUFFIX_ARGS = -p b007 -v 1c11 |
| 59 | 27 | ||
| @@ -75,6 +43,10 @@ BACKLIGHT_ENABLE = yes | |||
| 75 | BACKLIGHT_DRIVER = custom | 43 | BACKLIGHT_DRIVER = custom |
| 76 | VISUALIZER_ENABLE = yes | 44 | VISUALIZER_ENABLE = yes |
| 77 | 45 | ||
| 46 | # project specific files | ||
| 47 | SRC = matrix.c \ | ||
| 48 | led.c | ||
| 49 | |||
| 78 | LED_DRIVER = is31fl3731c | 50 | LED_DRIVER = is31fl3731c |
| 79 | LED_WIDTH = 16 | 51 | LED_WIDTH = 16 |
| 80 | LED_HEIGHT = 5 | 52 | LED_HEIGHT = 5 |
