Skip to content

Commit

Permalink
Add board specific to Proton-C, with usual defaults turned on. (#10976)
Browse files Browse the repository at this point in the history
- Set all other ChibiOS defaults to 'off', when not targeting Proton-C
- Modified all existing F303 boards to point at the QMK_PROTON_C to ensure repeatable binary output
- Modified version.h generation so that SKIP_VERSION=yes generates the same output
  • Loading branch information
tzarc authored Dec 3, 2020
1 parent 777a30c commit 8729143
Show file tree
Hide file tree
Showing 65 changed files with 1,659 additions and 17 deletions.
4 changes: 1 addition & 3 deletions build_keyboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ ifeq ($(strip $(CTPC)), yes)
endif

ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes)
TARGET := $(TARGET)_proton_c
include platforms/chibios/GENERIC_STM32_F303XC/configs/proton_c.mk
OPT_DEFS += -DCONVERT_TO_PROTON_C
include platforms/chibios/QMK_PROTON_C/convert_to_proton_c.mk
endif

ifneq ($(FORCE_LAYOUT),)
Expand Down
1 change: 1 addition & 0 deletions docs/ja/proton_c_conversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Proton C には1つのオンボード LED(C13)しかなく、デフォルトで

```
MCU = STM32F303
BOARD = QMK_PROTON_C
```

次の変数が存在する場合は削除します。
Expand Down
1 change: 1 addition & 0 deletions docs/proton_c_conversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ To use the Proton C natively, without having to specify `CTPC=yes`, you need to

```
MCU = STM32F303
BOARD = QMK_PROTON_C
```

Remove these variables if they exist:
Expand Down
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,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

## Features
CONSOLE_ENABLE = yes
Expand Down
1 change: 1 addition & 0 deletions keyboards/acheron/shark/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/atreus/keymaps/ridingqwerty/rules.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# comment out to disable the options.
Expand Down
1 change: 1 addition & 0 deletions keyboards/boston_meetup/2019/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# comment out to disable the options.
Expand Down
1 change: 1 addition & 0 deletions keyboards/c39/keymaps/drashna/rules.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
MCU = STM32F303
BOARD = QMK_PROTON_C
BOOTLOADER =

BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
Expand Down
1 change: 1 addition & 0 deletions keyboards/ckeys/thedora/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# comment out to disable the options.
Expand Down
1 change: 1 addition & 0 deletions keyboards/clueboard/60/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# comment out to disable the options.
Expand Down
1 change: 1 addition & 0 deletions keyboards/clueboard/66/rev4/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# comment out to disable the options.
Expand Down
1 change: 1 addition & 0 deletions keyboards/clueboard/66_hotswap/gen1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# LED Configuration
LED_MATRIX_ENABLE = yes
Expand Down
1 change: 1 addition & 0 deletions keyboards/clueboard/california/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

## Features
MOUSEKEY_ENABLE = yes # Mouse keys
Expand Down
1 change: 1 addition & 0 deletions keyboards/dztech/dz60rgb/v1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/dztech/dz60rgb_ansi/v1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/dztech/dz60rgb_wkl/v1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/dztech/dz65rgb/v1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/hadron/ver3/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# comment out to disable the options.
Expand Down
1 change: 1 addition & 0 deletions keyboards/handwired/co60/rev6/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# comment out to disable the options.
Expand Down
1 change: 1 addition & 0 deletions keyboards/handwired/co60/rev7/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Use SPI for RGB underglow:
WS2812_DRIVER = spi
Expand Down
1 change: 1 addition & 0 deletions keyboards/handwired/d48/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/handwired/ddg_56/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change to "no" to disable the options, or define them in the Makefile in
Expand Down
1 change: 1 addition & 0 deletions keyboards/handwired/floorboard/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/handwired/onekey/proton_c/rules.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C
1 change: 1 addition & 0 deletions keyboards/handwired/onekey/pytest/rules.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C
1 change: 1 addition & 0 deletions keyboards/handwired/selene/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/handwired/sick_pad/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/handwired/steamvan/rev1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Use SPI for RGB underglow:
WS2812_DRIVER = spi
Expand Down
1 change: 1 addition & 0 deletions keyboards/handwired/wulkan/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# comment out to disable the options.
Expand Down
1 change: 1 addition & 0 deletions keyboards/hs60/v2/ansi/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Do not put the microcontroller into power saving mode
# when we get USB suspend event. We want it to keep updating
Expand Down
1 change: 1 addition & 0 deletions keyboards/hs60/v2/hhkb/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Do not put the microcontroller into power saving mode
# when we get USB suspend event. We want it to keep updating
Expand Down
1 change: 1 addition & 0 deletions keyboards/hs60/v2/iso/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Do not put the microcontroller into power saving mode
# when we get USB suspend event. We want it to keep updating
Expand Down
1 change: 1 addition & 0 deletions keyboards/kbdfans/kbd67/mkiirgb/v1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

BACKLIGHT_ENABLE = no
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
Expand Down
1 change: 1 addition & 0 deletions keyboards/kv/revt/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/mechlovin/adelais/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C


# Build Options
Expand Down
1 change: 1 addition & 0 deletions keyboards/mechlovin/hannah60rgb/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/mechlovin/hannah65/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/mechlovin/infinity87/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/mechlovin/infinity88/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/melgeek/mj61/rev1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/melgeek/mj63/rev1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/melgeek/mj64/rev1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/melgeek/mj64/rev2/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/melgeek/mojo75/rev1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/melgeek/z70ultra/rev1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/moonlander/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
1 change: 1 addition & 0 deletions keyboards/nebula68/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Do not put the microcontroller into power saving mode
# when we get USB suspend event. We want it to keep updating
Expand Down
1 change: 1 addition & 0 deletions keyboards/nk65/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Do not put the microcontroller into power saving mode
# when we get USB suspend event. We want it to keep updating
Expand Down
1 change: 1 addition & 0 deletions keyboards/nk87/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Do not put the microcontroller into power saving mode
# when we get USB suspend event. We want it to keep updating
Expand Down
1 change: 1 addition & 0 deletions keyboards/planck/ez/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change to "no" to disable the options, or define them in the Makefile in
Expand Down
1 change: 1 addition & 0 deletions keyboards/planck/rev6/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change to "no" to disable the options, or define them in the Makefile in
Expand Down
1 change: 1 addition & 0 deletions keyboards/preonic/rev3/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change to "no" to disable the options, or define them in the Makefile in
Expand Down
1 change: 1 addition & 0 deletions keyboards/rgbkb/pan/rev1/proton_c/rules.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C
1 change: 1 addition & 0 deletions keyboards/yugo_m/model_m_101/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C

# Build Options
# change yes to no to disable
Expand Down
Loading

0 comments on commit 8729143

Please sign in to comment.