mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-29 06:30:17 +00:00
Update support multiple mcu
This commit is contained in:
parent
db27a8e692
commit
1ed643d8d5
@ -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>
|
||||||
|
@ -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",
|
1
keyboards/trnthsn/s6xty5r2/rules.mk
Normal file
1
keyboards/trnthsn/s6xty5r2/rules.mk
Normal file
@ -0,0 +1 @@
|
|||||||
|
DEFAULT_FOLDER = trnthsn/okayu/stm32f072
|
4
keyboards/trnthsn/s6xty5r2/stm32f072/keyboard.json
Normal file
4
keyboards/trnthsn/s6xty5r2/stm32f072/keyboard.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"processor": "STM32F072",
|
||||||
|
"bootloader": "stm32-dfu",
|
||||||
|
}
|
23
keyboards/trnthsn/s6xty5r2/stm32f103/config.h
Normal file
23
keyboards/trnthsn/s6xty5r2/stm32f103/config.h
Normal 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
|
4
keyboards/trnthsn/s6xty5r2/stm32f103/keyboard.json
Normal file
4
keyboards/trnthsn/s6xty5r2/stm32f103/keyboard.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"processor": "STM32F103",
|
||||||
|
"bootloader": "uf2boot",
|
||||||
|
}
|
22
keyboards/trnthsn/s6xty5r2/stm32f103/mcuconf.h
Normal file
22
keyboards/trnthsn/s6xty5r2/stm32f103/mcuconf.h
Normal 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
|
Loading…
Reference in New Issue
Block a user