aboutsummaryrefslogtreecommitdiff
path: root/keyboards/smithrune/iron165r2
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/smithrune/iron165r2')
-rw-r--r--keyboards/smithrune/iron165r2/f072/keyboard.json (renamed from keyboards/smithrune/iron165r2/f072/info.json)12
-rw-r--r--keyboards/smithrune/iron165r2/f072/rules.mk15
-rw-r--r--keyboards/smithrune/iron165r2/f411/config.h4
-rw-r--r--keyboards/smithrune/iron165r2/f411/keyboard.json (renamed from keyboards/smithrune/iron165r2/f411/info.json)12
-rw-r--r--keyboards/smithrune/iron165r2/f411/rules.mk14
-rw-r--r--keyboards/smithrune/iron165r2/iron165r2.c6
6 files changed, 29 insertions, 34 deletions
diff --git a/keyboards/smithrune/iron165r2/f072/info.json b/keyboards/smithrune/iron165r2/f072/keyboard.json
index 2cbbaa84f3..e16493d0b5 100644
--- a/keyboards/smithrune/iron165r2/f072/info.json
+++ b/keyboards/smithrune/iron165r2/f072/keyboard.json
@@ -1,4 +1,16 @@
{
+ "build": {
+ "lto": false
+ },
+ "features": {
+ "backlight": true,
+ "bootmagic": true,
+ "command": true,
+ "extrakey": true,
+ "mousekey": false,
+ "nkro": true,
+ "rgblight": true
+ },
"backlight": {
"pin": "A6",
"levels": 20,
diff --git a/keyboards/smithrune/iron165r2/f072/rules.mk b/keyboards/smithrune/iron165r2/f072/rules.mk
deleted file mode 100644
index b524e61f4b..0000000000
--- a/keyboards/smithrune/iron165r2/f072/rules.mk
+++ /dev/null
@@ -1,15 +0,0 @@
-# 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
-
diff --git a/keyboards/smithrune/iron165r2/f411/config.h b/keyboards/smithrune/iron165r2/f411/config.h
index 8ed73d3ff4..bcd506ade3 100644
--- a/keyboards/smithrune/iron165r2/f411/config.h
+++ b/keyboards/smithrune/iron165r2/f411/config.h
@@ -24,5 +24,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define WS2812_PWM_DRIVER PWMD1
#define WS2812_PWM_CHANNEL 3
#define WS2812_PWM_PAL_MODE 1
-#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
-#define WS2812_DMA_CHANNEL 6
+#define WS2812_PWM_DMA_STREAM STM32_DMA2_STREAM5
+#define WS2812_PWM_DMA_CHANNEL 6
diff --git a/keyboards/smithrune/iron165r2/f411/info.json b/keyboards/smithrune/iron165r2/f411/keyboard.json
index ff685e3cdd..d3d4b3de50 100644
--- a/keyboards/smithrune/iron165r2/f411/info.json
+++ b/keyboards/smithrune/iron165r2/f411/keyboard.json
@@ -1,4 +1,16 @@
{
+ "build": {
+ "lto": false
+ },
+ "features": {
+ "backlight": true,
+ "bootmagic": true,
+ "command": true,
+ "extrakey": true,
+ "mousekey": false,
+ "nkro": true,
+ "rgblight": true
+ },
"eeprom": {
"driver": "i2c"
},
diff --git a/keyboards/smithrune/iron165r2/f411/rules.mk b/keyboards/smithrune/iron165r2/f411/rules.mk
deleted file mode 100644
index f5a58ab0cb..0000000000
--- a/keyboards/smithrune/iron165r2/f411/rules.mk
+++ /dev/null
@@ -1,14 +0,0 @@
-# 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
diff --git a/keyboards/smithrune/iron165r2/iron165r2.c b/keyboards/smithrune/iron165r2/iron165r2.c
index 6f1606f89d..428494f408 100644
--- a/keyboards/smithrune/iron165r2/iron165r2.c
+++ b/keyboards/smithrune/iron165r2/iron165r2.c
@@ -17,8 +17,8 @@
#include "quantum.h"
void board_init(void) {
- setPinInput(B6);
- setPinInput(B7);
+ gpio_set_pin_input(B6);
+ gpio_set_pin_input(B7);
#if defined (LINE_RGBS)
rgblight_set_effect_range(0,16);
#elif defined (RUNE_RGBS)
@@ -30,6 +30,6 @@ void board_init(void) {
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
- if(res) writePin(LED_CAPS_LOCK_PIN, led_state.caps_lock);
+ if(res) gpio_write_pin(LED_CAPS_LOCK_PIN, led_state.caps_lock);
return res;
}