diff options
Diffstat (limited to 'keyboards')
-rw-r--r-- | keyboards/handwired/onekey/stm32f405_feather/config.h | 25 | ||||
-rw-r--r-- | keyboards/handwired/onekey/stm32f405_feather/readme.md | 7 | ||||
-rw-r--r-- | keyboards/handwired/onekey/stm32f405_feather/rules.mk | 8 |
3 files changed, 40 insertions, 0 deletions
diff --git a/keyboards/handwired/onekey/stm32f405_feather/config.h b/keyboards/handwired/onekey/stm32f405_feather/config.h new file mode 100644 index 000000000..32d780797 --- /dev/null +++ b/keyboards/handwired/onekey/stm32f405_feather/config.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* Copyright 2019 | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | #include "config_common.h" | ||
20 | |||
21 | #define PRODUCT Onekey Adafruit Feather STM32F405 | ||
22 | |||
23 | #define MATRIX_COL_PINS { C2 } | ||
24 | #define MATRIX_ROW_PINS { C3 } | ||
25 | #define UNUSED_PINS | ||
diff --git a/keyboards/handwired/onekey/stm32f405_feather/readme.md b/keyboards/handwired/onekey/stm32f405_feather/readme.md new file mode 100644 index 000000000..49a05725d --- /dev/null +++ b/keyboards/handwired/onekey/stm32f405_feather/readme.md | |||
@@ -0,0 +1,7 @@ | |||
1 | # Adafruit Feather STM32F405 Express onekey | ||
2 | |||
3 | * Supported Hardware: [Adafruit Feather STM32F405 Express](https://www.adafruit.com/product/4382) | ||
4 | |||
5 | To trigger keypress, short together pins *GPIO 12 / PC2* and *GPIO 11 / PC3*. | ||
6 | |||
7 | https://learn.adafruit.com/adafruit-stm32f405-feather-express/dfu-bootloader-details#enabling-dfu-bootloader-mode-3045622-2 \ No newline at end of file | ||
diff --git a/keyboards/handwired/onekey/stm32f405_feather/rules.mk b/keyboards/handwired/onekey/stm32f405_feather/rules.mk new file mode 100644 index 000000000..bff7a7e29 --- /dev/null +++ b/keyboards/handwired/onekey/stm32f405_feather/rules.mk | |||
@@ -0,0 +1,8 @@ | |||
1 | # MCU name | ||
2 | MCU = STM32F405 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = stm32-dfu | ||
6 | |||
7 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
8 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE | ||