Skip to content

Commit

Permalink
[Core] Cleanup rules.mk for F303 keyboards (qmk#7306)
Browse files Browse the repository at this point in the history
* Cleanup rules.mk for F303 keyboards

* Fix small typo
  • Loading branch information
fauxpark authored and noroadsleft committed Nov 15, 2019
1 parent c19e4da commit f98750d
Show file tree
Hide file tree
Showing 37 changed files with 98 additions and 4,305 deletions.
16 changes: 14 additions & 2 deletions keyboards/1upkeyboards/sweet16/v1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# MCU name
MCU = atmega32u4

# Bootloader selection
# Teensy halfkay
# Pro Micro caterina
# Atmel DFU atmel-dfu
# LUFA DFU lufa-dfu
# QMK DFU qmk-dfu
# ATmega32A bootloadHID
# ATmega328P USBasp
BOOTLOADER = caterina
LINK_TIME_OPTIMIZATION_ENABLE=yes

RGBLIGHT_ENABLE = yes
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality

LINK_TIME_OPTIMIZATION_ENABLE = yes
13 changes: 12 additions & 1 deletion keyboards/1upkeyboards/sweet16/v2/promicro/rules.mk
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
# MCU name
MCU = atmega32u4

# Bootloader selection
# Teensy halfkay
# Pro Micro caterina
# Atmel DFU atmel-dfu
# LUFA DFU lufa-dfu
# QMK DFU qmk-dfu
# ATmega32A bootloadHID
# ATmega328P USBasp
BOOTLOADER = caterina
LINK_TIME_OPTIMIZATION_ENABLE=yes

## Features
CONSOLE_ENABLE = yes

## On a Pro Micro you have to choose between underglow and the rotary encoder.
RGBLIGHT_ENABLE = no
ENCODER_ENABLE = yes

LINK_TIME_OPTIMIZATION_ENABLE = yes
1 change: 1 addition & 0 deletions keyboards/1upkeyboards/sweet16/v2/proton_c/rules.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# MCU name
MCU = STM32F303

## Features
Expand Down
6 changes: 2 additions & 4 deletions keyboards/boston_meetup/2019/rules.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# project specific files

# Cortex version
MCU = STM32F303
# MCU name
MCU = STM32F303

# Build Options
# comment out to disable the options.
Expand Down
1 change: 1 addition & 0 deletions keyboards/ckeys/thedora/rules.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# MCU name
MCU = STM32F303

# Build Options
Expand Down
44 changes: 6 additions & 38 deletions keyboards/clueboard/60/rules.mk
Original file line number Diff line number Diff line change
@@ -1,41 +1,5 @@
# project specific files
SRC = led.c
LAYOUTS += 60_ansi 60_ansi_split_bs_rshift 60_iso

## chip/board settings
# - the next two should match the directories in
# <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
MCU_FAMILY = STM32
MCU_SERIES = STM32F3xx

# Linker script to use
# - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
# or <this_dir>/ld/
MCU_LDSCRIPT = STM32F303xC

# Startup code to use
# - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
MCU_STARTUP = stm32f3xx

# Board: it should exist either in <chibios>/os/hal/boards/
# or <this_dir>/boards
BOARD = GENERIC_STM32_F303XC

# Cortex version
MCU = cortex-m4

# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
ARMV = 7

USE_FPU = yes

# Vector table for application
# 0x00000000-0x00001000 area is occupied by bootlaoder.*/
OPT_DEFS =

# Options to pass to dfu-util when flashing
DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
DFU_SUFFIX_ARGS = -p DF11 -v 0483
# MCU name
MCU = STM32F303

# Build Options
# comment out to disable the options.
Expand All @@ -48,3 +12,7 @@ CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = yes # USB Nkey Rollover
AUDIO_ENABLE = yes

# project specific files
SRC = led.c
LAYOUTS += 60_ansi 60_ansi_split_bs_rshift 60_iso
20 changes: 4 additions & 16 deletions keyboards/clueboard/66/rev4/rules.mk
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
LAYOUTS = 66_ansi 66_iso

## chip/board settings
MCU_FAMILY = STM32
MCU_SERIES = STM32F3xx
MCU_LDSCRIPT = STM32F303xC
MCU_STARTUP = stm32f3xx
BOARD = GENERIC_STM32_F303XC
MCU = cortex-m4
ARMV = 7
USE_FPU = yes
OPT_DEFS =

# Options to pass to dfu-util when flashing
DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
DFU_SUFFIX_ARGS = -p DF11 -v 0483
# MCU name
MCU = STM32F303

# Build Options
# comment out to disable the options.
Expand All @@ -31,3 +17,5 @@ MIDI_ENABLE = no # MIDI controls
UNICODE_ENABLE = no # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
AUDIO_ENABLE = yes

LAYOUTS = 66_ansi 66_iso
46 changes: 6 additions & 40 deletions keyboards/clueboard/66_hotswap/gen1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,43 +1,5 @@
# project specific files
SRC = led.c
LAYOUTS += 66_ansi

## chip/board settings
# - the next two should match the directories in
# <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
MCU_FAMILY = STM32
MCU_SERIES = STM32F3xx

# Linker script to use
# - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
# or <this_dir>/ld/
MCU_LDSCRIPT = STM32F303xC

# Startup code to use
# - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
MCU_STARTUP = stm32f3xx

# Board: it should exist either in <chibios>/os/hal/boards/
# or <this_dir>/boards
BOARD = GENERIC_STM32_F303XC

# Cortex version
MCU = cortex-m4

# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
ARMV = 7

USE_FPU = yes

# Vector table for application
# 0x00000000-0x00001000 area is occupied by bootlaoder.*/
# The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
# OPT_DEFS = -DCORTEX_VTOR_INIT=0x08005000
OPT_DEFS =

# Options to pass to dfu-util when flashing
DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
DFU_SUFFIX_ARGS = -p DF11 -v 0483
# MCU name
MCU = STM32F303

# LED Configuration
LED_MATRIX_ENABLE = IS31FL3731
Expand All @@ -57,3 +19,7 @@ NKRO_ENABLE = yes # USB Nkey Rollover
#CUSTOM_MATRIX = yes # Custom matrix file
AUDIO_ENABLE = yes
# SERIAL_LINK_ENABLE = yes

# project specific files
SRC = led.c
LAYOUTS += 66_ansi
1 change: 1 addition & 0 deletions keyboards/clueboard/california/rules.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# MCU name
MCU = STM32F303

## Features
Expand Down
8 changes: 4 additions & 4 deletions keyboards/dztech/dz60rgb/rules.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MCU = STM32F303
DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
DFU_SUFFIX_ARGS = -p DF11 -v 0483
# MCU name
MCU = STM32F303

BACKLIGHT_ENABLE = no
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
MOUSEKEY_ENABLE = yes # Mouse keys
Expand All @@ -11,4 +11,4 @@ COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = no # USB Nkey Rollover
AUDIO_ENABLE = no
RGB_MATRIX_ENABLE = IS31FL3733 # Use RGB matrix
NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
8 changes: 4 additions & 4 deletions keyboards/dztech/dz60rgb_ansi/rules.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MCU = STM32F303
DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
DFU_SUFFIX_ARGS = -p DF11 -v 0483
# MCU name
MCU = STM32F303

BACKLIGHT_ENABLE = no
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
MOUSEKEY_ENABLE = yes # Mouse keys
Expand All @@ -13,4 +13,4 @@ AUDIO_ENABLE = no
RGB_MATRIX_ENABLE = IS31FL3733 # Use RGB matrix
NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in

LAYOUTS = 60_ansi
LAYOUTS = 60_ansi
6 changes: 3 additions & 3 deletions keyboards/dztech/dz65rgb/rules.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MCU = STM32F303
DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
DFU_SUFFIX_ARGS = -p DF11 -v 0483
# MCU name
MCU = STM32F303

BACKLIGHT_ENABLE = no
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
MOUSEKEY_ENABLE = yes # Mouse keys
Expand Down
1 change: 0 additions & 1 deletion keyboards/hadron/rules.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

DEFAULT_FOLDER = hadron/ver2
126 changes: 0 additions & 126 deletions keyboards/hadron/ver3/boards/GENERIC_STM32_F303XC/board.c

This file was deleted.

Loading

0 comments on commit f98750d

Please sign in to comment.