diff options
author | Less/Rikki <[email protected]> | 2024-12-22 16:03:03 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-22 13:03:03 -0800 |
commit | b4ece24c7dfa741ddef70a92166cd21930df55fd (patch) | |
tree | fede050c0be1b516f025c1ebd4dd841ae1361d05 /keyboards/ymdk/id75/f103 | |
parent | 5c1c4874d765bfec94f0b30ab285ba13b46a6b43 (diff) | |
download | qmk_firmware-b4ece24c7dfa741ddef70a92166cd21930df55fd.tar.gz qmk_firmware-b4ece24c7dfa741ddef70a92166cd21930df55fd.zip |
move ymdk/id75 to revision (#24590)
Diffstat (limited to 'keyboards/ymdk/id75/f103')
-rw-r--r-- | keyboards/ymdk/id75/f103/board.h | 22 | ||||
-rw-r--r-- | keyboards/ymdk/id75/f103/config.h | 23 | ||||
-rw-r--r-- | keyboards/ymdk/id75/f103/halconf.h | 21 | ||||
-rw-r--r-- | keyboards/ymdk/id75/f103/keyboard.json | 13 | ||||
-rw-r--r-- | keyboards/ymdk/id75/f103/mcuconf.h | 25 | ||||
-rw-r--r-- | keyboards/ymdk/id75/f103/rules.mk | 5 |
6 files changed, 109 insertions, 0 deletions
diff --git a/keyboards/ymdk/id75/f103/board.h b/keyboards/ymdk/id75/f103/board.h new file mode 100644 index 0000000000..49270b36a0 --- /dev/null +++ b/keyboards/ymdk/id75/f103/board.h @@ -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 diff --git a/keyboards/ymdk/id75/f103/config.h b/keyboards/ymdk/id75/f103/config.h new file mode 100644 index 0000000000..cb5ac78304 --- /dev/null +++ b/keyboards/ymdk/id75/f103/config.h @@ -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 diff --git a/keyboards/ymdk/id75/f103/halconf.h b/keyboards/ymdk/id75/f103/halconf.h new file mode 100644 index 0000000000..612ce4fc4a --- /dev/null +++ b/keyboards/ymdk/id75/f103/halconf.h @@ -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> diff --git a/keyboards/ymdk/id75/f103/keyboard.json b/keyboards/ymdk/id75/f103/keyboard.json new file mode 100644 index 0000000000..5b1974b3f2 --- /dev/null +++ b/keyboards/ymdk/id75/f103/keyboard.json @@ -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" + } +} diff --git a/keyboards/ymdk/id75/f103/mcuconf.h b/keyboards/ymdk/id75/f103/mcuconf.h new file mode 100644 index 0000000000..0d3de3dad5 --- /dev/null +++ b/keyboards/ymdk/id75/f103/mcuconf.h @@ -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 diff --git a/keyboards/ymdk/id75/f103/rules.mk b/keyboards/ymdk/id75/f103/rules.mk new file mode 100644 index 0000000000..dbee20ab05 --- /dev/null +++ b/keyboards/ymdk/id75/f103/rules.mk @@ -0,0 +1,5 @@ +# Configure for 128K flash +MCU_LDSCRIPT = STM32F103xB + +# Wildcard to allow APM32 MCU +DFU_SUFFIX_ARGS = -p FFFF -v FFFF |