move ymdk/id75 to revision (#24590)
This commit is contained in:
22
keyboards/ymdk/id75/f103/board.h
Normal file
22
keyboards/ymdk/id75/f103/board.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/* Copyright 2022 JasonRen(biu)
|
||||
*
|
||||
* 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 <board.h>
|
||||
|
||||
#undef STM32_HSECLK
|
||||
#define STM32_HSECLK 16000000
|
||||
23
keyboards/ymdk/id75/f103/config.h
Normal file
23
keyboards/ymdk/id75/f103/config.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* Copyright 2021 MT
|
||||
*
|
||||
* 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_PWM_DRIVER PWMD4
|
||||
#define WS2812_PWM_CHANNEL 4
|
||||
#define WS2812_PWM_PAL_MODE 2
|
||||
#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM7
|
||||
#define WS2812_PWM_DMA_CHANNEL 7
|
||||
21
keyboards/ymdk/id75/f103/halconf.h
Normal file
21
keyboards/ymdk/id75/f103/halconf.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/* Copyright 2020 QMK
|
||||
*
|
||||
* 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 HAL_USE_PWM TRUE
|
||||
|
||||
#include_next <halconf.h>
|
||||
13
keyboards/ymdk/id75/f103/keyboard.json
Normal file
13
keyboards/ymdk/id75/f103/keyboard.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manufacturer": "YMDK",
|
||||
"bootloader": "uf2boot",
|
||||
"matrix_pins": {
|
||||
"cols": ["A10", "A9", "A8", "B15", "B14", "B13", "B12", "A5", "A6", "A4", "A3", "A2", "A1", "A0", "A15"],
|
||||
"rows": ["B2", "B1", "B0", "A7", "B10"]
|
||||
},
|
||||
"processor": "STM32F103",
|
||||
"ws2812": {
|
||||
"driver": "pwm",
|
||||
"pin": "B9"
|
||||
}
|
||||
}
|
||||
25
keyboards/ymdk/id75/f103/mcuconf.h
Normal file
25
keyboards/ymdk/id75/f103/mcuconf.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/* Copyright 2020 QMK
|
||||
*
|
||||
* 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_PWM_USE_TIM4
|
||||
#define STM32_PWM_USE_TIM4 TRUE
|
||||
|
||||
#undef STM32_PLLXTPRE
|
||||
#define STM32_PLLXTPRE STM32_PLLXTPRE_DIV2
|
||||
5
keyboards/ymdk/id75/f103/rules.mk
Normal file
5
keyboards/ymdk/id75/f103/rules.mk
Normal file
@@ -0,0 +1,5 @@
|
||||
# Configure for 128K flash
|
||||
MCU_LDSCRIPT = STM32F103xB
|
||||
|
||||
# Wildcard to allow APM32 MCU
|
||||
DFU_SUFFIX_ARGS = -p FFFF -v FFFF
|
||||
Reference in New Issue
Block a user