aboutsummaryrefslogtreecommitdiff
path: root/keyboards/handwired
diff options
context:
space:
mode:
authorHorrorTroll <sonicvipduc@gmail.com>2025-01-04 03:33:22 +0700
committerGitHub <noreply@github.com>2025-01-03 20:33:22 +0000
commitcc3823f767a704cc465fbfdfef5d272aab018bd0 (patch)
tree4b558edf98a9e899ffbe7dbbbf97361e18b5ee7d /keyboards/handwired
parent9a0f4e586a5ac06241dc05ec13df3f07e4d0392d (diff)
Update some changes for AT32F415 (#24766)
* Fixed SPI can't compiled issue * Added solenoid support and use 256KB ldscript for Onekey board
Diffstat (limited to 'keyboards/handwired')
-rw-r--r--keyboards/handwired/onekey/at_start_f415/config.h4
-rw-r--r--keyboards/handwired/onekey/at_start_f415/rules.mk1
2 files changed, 5 insertions, 0 deletions
diff --git a/keyboards/handwired/onekey/at_start_f415/config.h b/keyboards/handwired/onekey/at_start_f415/config.h
index 266e45dd00..0e47e813c5 100644
--- a/keyboards/handwired/onekey/at_start_f415/config.h
+++ b/keyboards/handwired/onekey/at_start_f415/config.h
@@ -8,3 +8,7 @@
#define BACKLIGHT_PWM_DRIVER PWMD5
#define BACKLIGHT_PWM_CHANNEL 1
+
+#define SOLENOID_PIN B12
+#define SOLENOID_PINS { B12, B13, B14, B15 }
+#define SOLENOID_PINS_ACTIVE_STATE { high, high, low }
diff --git a/keyboards/handwired/onekey/at_start_f415/rules.mk b/keyboards/handwired/onekey/at_start_f415/rules.mk
new file mode 100644
index 0000000000..7f2fa62b32
--- /dev/null
+++ b/keyboards/handwired/onekey/at_start_f415/rules.mk
@@ -0,0 +1 @@
+MCU_LDSCRIPT = AT32F415xC