mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-22 07:32:02 +00:00
Update and move some line to info.json
This commit is contained in:
parent
930f6fa5a5
commit
0d413a5a1f
@ -18,13 +18,6 @@
|
|||||||
|
|
||||||
#include "config_common.h"
|
#include "config_common.h"
|
||||||
|
|
||||||
#define PRODUCT Onekey STM32 Mini v2 STM32F103RC
|
|
||||||
|
|
||||||
/* Key matrix pins */
|
|
||||||
#define MATRIX_COL_PINS { B0 }
|
|
||||||
#define MATRIX_ROW_PINS { B1 }
|
|
||||||
#define UNUSED_PINS
|
|
||||||
|
|
||||||
// SPI configuration
|
// SPI configuration
|
||||||
#define SPI_DRIVER SPID1
|
#define SPI_DRIVER SPID1
|
||||||
#define SPI_SCK_PIN A5
|
#define SPI_SCK_PIN A5
|
||||||
@ -48,12 +41,11 @@
|
|||||||
|
|
||||||
#ifdef BACKLIGHT_ENABLE
|
#ifdef BACKLIGHT_ENABLE
|
||||||
/* Backlight config */
|
/* Backlight config */
|
||||||
#define BACKLIGHT_PIN A0
|
|
||||||
#define BACKLIGHT_PWM_DRIVER PWMD2
|
#define BACKLIGHT_PWM_DRIVER PWMD2
|
||||||
#define BACKLIGHT_PWM_CHANNEL 1
|
#define BACKLIGHT_PWM_CHANNEL 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
/* RGB Matrix config */
|
/* RGB Matrix config */
|
||||||
#define RGB_DI_PIN A1
|
#define RGB_CI_PIN A2
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright 2020 QMK
|
/* Copyright 2022 HorrorTroll <https://github.com/HorrorTroll>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* This file was auto-generated by:
|
* This file was auto-generated by:
|
||||||
* `qmk chibios-confmigrate -i keyboards/handwired/onekey/bluepill/halconf.h -r platforms/chibios/common/configs/halconf.h`
|
* `qmk chibios-confmigrate -i keyboards/handwired/onekey/stm32_mini_v2/halconf.h -r platforms/chibios/common/configs/halconf.h`
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
15
keyboards/handwired/onekey/stm32_mini_v2/info.json
Normal file
15
keyboards/handwired/onekey/stm32_mini_v2/info.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Onekey STM32 Mini v2 STM32F103RC",
|
||||||
|
"processor": "STM32F103",
|
||||||
|
"board": "STM32_F103_STM32DUINO",
|
||||||
|
"matrix_pins": {
|
||||||
|
"cols": ["B0"],
|
||||||
|
"rows": ["B1"]
|
||||||
|
},
|
||||||
|
"backlight": {
|
||||||
|
"pin": "A0"
|
||||||
|
},
|
||||||
|
"rgblight": {
|
||||||
|
"pin": "A1"
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright 2020 QMK
|
/* Copyright 2022 HorrorTroll <https://github.com/HorrorTroll>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* This file was auto-generated by:
|
* This file was auto-generated by:
|
||||||
* `qmk chibios-confmigrate -i keyboards/handwired/onekey/bluepill/mcuconf.h -r platforms/chibios/STM32_F103_STM32DUINO/configs/mcuconf.h`
|
* `qmk chibios-confmigrate -i keyboards/handwired/onekey/stm32_mini_v2/mcuconf.h -r platforms/chibios/STM32_F103_STM32DUINO/configs/mcuconf.h`
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
# MCU name
|
|
||||||
MCU = STM32F103
|
|
||||||
|
|
||||||
# Bootloader selection
|
# Bootloader selection
|
||||||
# Cannot use `BOOTLOADER = stm32duino` due to the need to override
|
# Cannot use `BOOTLOADER = stm32duino` due to the need to override
|
||||||
# `MCU_LDSCRIPT`, therefore all parameters need to be specified here manually.
|
# `MCU_LDSCRIPT`, therefore all parameters need to be specified here manually.
|
||||||
OPT_DEFS += -DBOOTLOADER_STM32DUINO
|
OPT_DEFS += -DBOOTLOADER_STM32DUINO
|
||||||
MCU_LDSCRIPT = STM32F103xC_stm32duino_bootloader
|
MCU_LDSCRIPT = STM32F103xC_stm32duino_bootloader
|
||||||
BOARD = STM32_F103_STM32DUINO
|
|
||||||
BOOTLOADER_TYPE = stm32duino
|
BOOTLOADER_TYPE = stm32duino
|
||||||
DFU_ARGS = -d 1EAF:0003 -a 2 -R
|
DFU_ARGS = -d 1EAF:0003 -a 2 -R
|
||||||
DFU_SUFFIX_ARGS = -v 1EAF -p 0003
|
DFU_SUFFIX_ARGS = -v 1EAF -p 0003
|
||||||
|
Loading…
Reference in New Issue
Block a user