diff --git a/keyboards/handwired/sick68/bluepill/halconf.h b/keyboards/handwired/sick68/bluepill/halconf.h new file mode 100644 index 0000000000..459ec86e2d --- /dev/null +++ b/keyboards/handwired/sick68/bluepill/halconf.h @@ -0,0 +1,29 @@ +/* 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 . + */ + +/* + * This file was auto-generated by: + * `qmk chibios-confmigrate -i keyboards/handwired/pill60/bluepill/halconf.h -r platforms/chibios/common/configs/halconf.h` + */ + +#pragma once + +#define HAL_USE_I2C TRUE + +#define HAL_USE_PWM TRUE + +#include_next + diff --git a/keyboards/handwired/sick68/bluepill/info.json b/keyboards/handwired/sick68/bluepill/info.json new file mode 100644 index 0000000000..29babc5211 --- /dev/null +++ b/keyboards/handwired/sick68/bluepill/info.json @@ -0,0 +1,9 @@ +{ + "matrix_pins": { + "cols": ["A7", "A15", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "A0", "A1", "A2", "A3", "A4", "A5"], + "rows": ["B15", "A8", "A9", "A10", "A6"] + }, + "diode_direction": "COL2ROW", + "processor": "STM32F103", + "bootloader": "stm32duino" +} diff --git a/keyboards/handwired/sick68/bluepill/mcuconf.h b/keyboards/handwired/sick68/bluepill/mcuconf.h new file mode 100644 index 0000000000..22f8b02704 --- /dev/null +++ b/keyboards/handwired/sick68/bluepill/mcuconf.h @@ -0,0 +1,34 @@ +/* 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 . + */ + +/* + * This file was auto-generated by: + * `qmk chibios-confmigrate -i keyboards/handwired/pill60/bluepill/mcuconf.h -r platforms/chibios/STM32_F103_STM32DUINO/configs/mcuconf.h` + */ + +#pragma once + +#include_next + +#undef STM32_I2C_USE_I2C1 +#define STM32_I2C_USE_I2C1 TRUE + +#undef STM32_PWM_USE_TIM2 +#define STM32_PWM_USE_TIM2 TRUE + +#undef STM32_SPI_USE_SPI2 +#define STM32_SPI_USE_SPI2 FALSE + diff --git a/keyboards/handwired/sick68/bluepill/rules.mk b/keyboards/handwired/sick68/bluepill/rules.mk new file mode 100644 index 0000000000..a92b099328 --- /dev/null +++ b/keyboards/handwired/sick68/bluepill/rules.mk @@ -0,0 +1,2 @@ +# Enter lower-power sleep mode when on the ChibiOS idle thread +OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE