summaryrefslogtreecommitdiff
path: root/keyboards/ergodox_stm32/ergodox_stm32.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ergodox_stm32/ergodox_stm32.c')
-rw-r--r--keyboards/ergodox_stm32/ergodox_stm32.c4
1 files changed, 4 insertions, 0 deletions
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