Skip to content

Commit

Permalink
Fixup iron165r2 (#17119)
Browse files Browse the repository at this point in the history
* initial

* revert some defines

* formatting

* apply changes

* update readme

* suggestion
  • Loading branch information
waffle87 authored May 29, 2022
1 parent 89a5d5a commit 07f5147
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 22 deletions.
20 changes: 20 additions & 0 deletions keyboards/smithrune/iron165r2/f072/rules.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
# MCU name
MCU = STM32F072

# Bootloader selection
BOOTLOADER = stm32-dfu

# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
MOUSEKEY_ENABLE = no # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = yes # Commands for debug and configuration
NKRO_ENABLE = yes # USB Nkey Rollover
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
LTO_ENABLE = no
ENCODER_ENABLE = no
BACKLIGHT_ENABLE = yes
BACKLIGHT_DRIVER = pwm

# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
21 changes: 21 additions & 0 deletions keyboards/smithrune/iron165r2/f411/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# MCU name
MCU = STM32F411

# Bootloader selection
BOOTLOADER = stm32-dfu

# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
MOUSEKEY_ENABLE = no # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = yes # Commands for debug and configuration
NKRO_ENABLE = yes # USB Nkey Rollover
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
LTO_ENABLE = no
ENCODER_ENABLE = no
EEPROM_DRIVER = i2c
BACKLIGHT_ENABLE = yes
BACKLIGHT_DRIVER = pwm
WS2812_DRIVER = pwm

# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
8 changes: 4 additions & 4 deletions keyboards/smithrune/iron165r2/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ The 165R2 PCB was prototyped and tested using two microcontrollers: STM32F072 an

After checking what PCB you own and setting up your build environment, you can compile the Iron 165R2 default keymap by using one of the options below.

make smithrune/iron165r2/165r2_f072:default
make smithrune/iron165r2/165r2_f411:default
make smithrune/iron165r2/f072:default
make smithrune/iron165r2/f411:default

And use dfu-util in the command line or through a GUI like QMK toolbox to upload the firmware to the PCB. To directly flash the PCB after it is put into a DFU state, use:

make smithrune/iron165r2/165r2_f072:default:flash
make smithrune/iron165r2/165r2_f411:default:flash
make smithrune/iron165r2/f072:default:flash
make smithrune/iron165r2/f411:default:flash

See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).

Expand Down
18 changes: 0 additions & 18 deletions keyboards/smithrune/iron165r2/rules.mk

This file was deleted.

0 comments on commit 07f5147

Please sign in to comment.