summaryrefslogtreecommitdiff
path: root/keyboards/ergodox_stm32
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-01-20 00:23:07 +1100
committerGitHub <noreply@github.com>2021-01-20 00:23:07 +1100
commitd85b27bbbc6b086db469570cf741b515695dd816 (patch)
tree07686f572255adfb278aa10a4d3021619fab264c /keyboards/ergodox_stm32
parentd668fd3977c46bd5c9a5c50ce77ac86c85cc18ed (diff)
downloadqmk_firmware-d85b27bbbc6b086db469570cf741b515695dd816.tar.gz
qmk_firmware-d85b27bbbc6b086db469570cf741b515695dd816.zip
Leftover early initialisation conversions (#11615)
* jm60 * ergodox_stm32 * F042 bootloader jumps. * xiaomi/mk02 custom bootloader, no early-init bootloader jump for F072. * matrix/m20add, matrix/noah
Diffstat (limited to 'keyboards/ergodox_stm32')
-rw-r--r--keyboards/ergodox_stm32/boards/ERGODOX_STM32_BOARD/board.c2
-rw-r--r--keyboards/ergodox_stm32/ergodox_stm32.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/keyboards/ergodox_stm32/boards/ERGODOX_STM32_BOARD/board.c b/keyboards/ergodox_stm32/boards/ERGODOX_STM32_BOARD/board.c
index 48844e34a6..41a603b951 100644
--- a/keyboards/ergodox_stm32/boards/ERGODOX_STM32_BOARD/board.c
+++ b/keyboards/ergodox_stm32/boards/ERGODOX_STM32_BOARD/board.c
@@ -46,6 +46,4 @@ void __early_init(void) {
* Board-specific initialization code.
*/
void boardInit(void) {
- AFIO->MAPR |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE;
-
}
diff --git a/keyboards/ergodox_stm32/ergodox_stm32.c b/keyboards/ergodox_stm32/ergodox_stm32.c
index 176fb3f43a..846c29d7a4 100644
--- a/keyboards/ergodox_stm32/ergodox_stm32.c
+++ b/keyboards/ergodox_stm32/ergodox_stm32.c
@@ -12,6 +12,10 @@ extern inline void ergodox_led_all_off(void);
volatile int mcp23017_status = 0x20;
uint8_t i2c_initializied = 0;
+void board_init(void) {
+ AFIO->MAPR |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE;
+}
+
void matrix_init_kb(void)
{
// Init LED Ports