Update support multiple mcu

This commit is contained in:
Trần Thanh Sơn 2024-10-28 17:09:26 +07:00
parent db27a8e692
commit 1ed643d8d5
9 changed files with 56 additions and 3 deletions

View File

@ -17,5 +17,6 @@
#pragma once #pragma once
#define HAL_USE_SPI TRUE #define HAL_USE_SPI TRUE
#define SPI_USE_WAIT TRUE
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
#include_next <halconf.h> #include_next <halconf.h>

View File

@ -2,7 +2,6 @@
"manufacturer": "ThanhSon.Mech", "manufacturer": "ThanhSon.Mech",
"keyboard_name": "S6xty5 Rev.2", "keyboard_name": "S6xty5 Rev.2",
"maintainer": "trnthsn", "maintainer": "trnthsn",
"bootloader": "stm32-dfu",
"diode_direction": "COL2ROW", "diode_direction": "COL2ROW",
"features": { "features": {
"bootmagic": true, "bootmagic": true,
@ -40,7 +39,6 @@
"indicators": { "indicators": {
"caps_lock": "A5" "caps_lock": "A5"
}, },
"processor": "STM32F072",
"url": "", "url": "",
"usb": { "usb": {
"vid": "0x5453", "vid": "0x5453",

View File

@ -0,0 +1 @@
DEFAULT_FOLDER = trnthsn/okayu/stm32f072

View File

@ -0,0 +1,4 @@
{
"processor": "STM32F072",
"bootloader": "stm32-dfu",
}

View File

@ -0,0 +1,23 @@
/*
Copyright 2024 ThanhSon.Mech
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#define WS2812_SPI_DRIVER SPID2
#define WS2812_SPI_MOSI_PAL_MODE 0
#define WS2812_SPI_SCK_PAL_MODE 0
#define WS2812_SPI_SCK_PIN B13

View File

@ -0,0 +1,4 @@
{
"processor": "STM32F103",
"bootloader": "uf2boot",
}

View File

@ -0,0 +1,22 @@
/* Copyright 2024 ThanhSon.Mech
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include_next <mcuconf.h>
#undef STM32_SPI_USE_SPI2
#define STM32_SPI_USE_SPI2 TRUE