summaryrefslogtreecommitdiff
path: root/keyboards/handwired/onekey/stm32f0_disco
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-07-31 03:10:05 +1000
committerGitHub <noreply@github.com>2021-07-30 18:10:05 +0100
commitd1db0087456e0cc7d20477feb22f434c3a4ce51d (patch)
treecb5c71a2840244b28d859bd7a97bdcf99797ee5a /keyboards/handwired/onekey/stm32f0_disco
parentcfca9707182aa832bb1c3aa2e93ce3cf749c63e9 (diff)
Onekey cleanup (#13786)
Diffstat (limited to 'keyboards/handwired/onekey/stm32f0_disco')
-rw-r--r--keyboards/handwired/onekey/stm32f0_disco/chconf.h1
-rw-r--r--keyboards/handwired/onekey/stm32f0_disco/config.h10
-rw-r--r--keyboards/handwired/onekey/stm32f0_disco/halconf.h1
-rw-r--r--keyboards/handwired/onekey/stm32f0_disco/mcuconf.h1
-rw-r--r--keyboards/handwired/onekey/stm32f0_disco/readme.md2
5 files changed, 7 insertions, 8 deletions
diff --git a/keyboards/handwired/onekey/stm32f0_disco/chconf.h b/keyboards/handwired/onekey/stm32f0_disco/chconf.h
index 33ceb1431e..1e497767d5 100644
--- a/keyboards/handwired/onekey/stm32f0_disco/chconf.h
+++ b/keyboards/handwired/onekey/stm32f0_disco/chconf.h
@@ -28,4 +28,3 @@
#define CH_CFG_USE_CONDVARS_TIMEOUT FALSE
#include_next <chconf.h>
-
diff --git a/keyboards/handwired/onekey/stm32f0_disco/config.h b/keyboards/handwired/onekey/stm32f0_disco/config.h
index 0d6dd18fa2..e0f6d00050 100644
--- a/keyboards/handwired/onekey/stm32f0_disco/config.h
+++ b/keyboards/handwired/onekey/stm32f0_disco/config.h
@@ -18,14 +18,16 @@
#include "config_common.h"
+#define PRODUCT Onekey STM32F072 Discovery
+
#define MATRIX_COL_PINS { B4 }
#define MATRIX_ROW_PINS { B5 }
#define UNUSED_PINS
-#define BACKLIGHT_PIN C8
-#define BACKLIGHT_PWM_DRIVER PWMD3
-#define BACKLIGHT_PWM_CHANNEL 3
-#define BACKLIGHT_PAL_MODE 0
+#define BACKLIGHT_PIN C8
+#define BACKLIGHT_PWM_DRIVER PWMD3
+#define BACKLIGHT_PWM_CHANNEL 3
+#define BACKLIGHT_PAL_MODE 0
#define RGB_DI_PIN B15
diff --git a/keyboards/handwired/onekey/stm32f0_disco/halconf.h b/keyboards/handwired/onekey/stm32f0_disco/halconf.h
index cb7de67386..78ed6586c8 100644
--- a/keyboards/handwired/onekey/stm32f0_disco/halconf.h
+++ b/keyboards/handwired/onekey/stm32f0_disco/halconf.h
@@ -24,4 +24,3 @@
#define HAL_USE_PWM TRUE
#include_next <halconf.h>
-
diff --git a/keyboards/handwired/onekey/stm32f0_disco/mcuconf.h b/keyboards/handwired/onekey/stm32f0_disco/mcuconf.h
index 52d39e4dd4..ea4f9373a0 100644
--- a/keyboards/handwired/onekey/stm32f0_disco/mcuconf.h
+++ b/keyboards/handwired/onekey/stm32f0_disco/mcuconf.h
@@ -25,4 +25,3 @@
#undef STM32_PWM_USE_TIM3
#define STM32_PWM_USE_TIM3 TRUE
-
diff --git a/keyboards/handwired/onekey/stm32f0_disco/readme.md b/keyboards/handwired/onekey/stm32f0_disco/readme.md
index 48d999d69c..0f5c01984d 100644
--- a/keyboards/handwired/onekey/stm32f0_disco/readme.md
+++ b/keyboards/handwired/onekey/stm32f0_disco/readme.md
@@ -1,5 +1,5 @@
# STM32F072 Discovery kit onekey
-Supported Hardware: <https://www.st.com/en/evaluation-tools/32f072bdiscovery.html>
+* Supported Hardware: [STM32F072 Discovery](https://www.st.com/en/evaluation-tools/32f072bdiscovery.html)
To trigger keypress, short together pins *B4* and *B5*.