summaryrefslogtreecommitdiff
path: root/keyboards/sawnsprojects/okayu/stm32f303
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/sawnsprojects/okayu/stm32f303')
-rw-r--r--keyboards/sawnsprojects/okayu/stm32f303/config.h8
-rw-r--r--keyboards/sawnsprojects/okayu/stm32f303/info.json4
-rw-r--r--keyboards/sawnsprojects/okayu/stm32f303/mcuconf.h8
-rw-r--r--keyboards/sawnsprojects/okayu/stm32f303/rules.mk0
4 files changed, 20 insertions, 0 deletions
diff --git a/keyboards/sawnsprojects/okayu/stm32f303/config.h b/keyboards/sawnsprojects/okayu/stm32f303/config.h
new file mode 100644
index 0000000000..c47f1928c8
--- /dev/null
+++ b/keyboards/sawnsprojects/okayu/stm32f303/config.h
@@ -0,0 +1,8 @@
+// Copyright 2023 MaiTheSan
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+#define WS2812_SPI SPID1
+#define WS2812_SPI_MOSI_PAL_MODE 5
+#define WS2812_SPI_SCK_PIN B13
+#define WS2812_SPI_SCK_PAL_MODE 5 \ No newline at end of file
diff --git a/keyboards/sawnsprojects/okayu/stm32f303/info.json b/keyboards/sawnsprojects/okayu/stm32f303/info.json
new file mode 100644
index 0000000000..84661311fd
--- /dev/null
+++ b/keyboards/sawnsprojects/okayu/stm32f303/info.json
@@ -0,0 +1,4 @@
+{
+ "processor": "STM32F303",
+ "bootloader": "stm32-dfu"
+} \ No newline at end of file
diff --git a/keyboards/sawnsprojects/okayu/stm32f303/mcuconf.h b/keyboards/sawnsprojects/okayu/stm32f303/mcuconf.h
new file mode 100644
index 0000000000..7cd72d9a86
--- /dev/null
+++ b/keyboards/sawnsprojects/okayu/stm32f303/mcuconf.h
@@ -0,0 +1,8 @@
+// Copyright 2023 MaiTheSan
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+#include_next <mcuconf.h>
+
+#undef STM32_SPI_USE_SPI1
+#define STM32_SPI_USE_SPI1 TRUE
diff --git a/keyboards/sawnsprojects/okayu/stm32f303/rules.mk b/keyboards/sawnsprojects/okayu/stm32f303/rules.mk
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/keyboards/sawnsprojects/okayu/stm32f303/rules.mk