from: https://eroro.tistory.com/430
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
/*!< Full SWJ Enabled (JTAG-DP + SW-DP) but without JTRST */ #define GPIO_Remap_SWJ_NoJTRST ((uint32_t)0x00300100) /*!< JTAG-DP Disabled and SW-DP Enabled */ #define GPIO_Remap_SWJ_JTAGDisable ((uint32_t)0x00300200) /*!< Full SWJ Disabled (JTAG-DP + SW-DP) */ #define GPIO_Remap_SWJ_Disable ((uint32_t)0x00300400) /* Enable the AFIO Clock for Remap */ RCC_APB2PeriphClockCmd (RCC_APB2Periph_AFIO, ENABLE); /* Jtag Pin Disable */ GPIO_PinRemapConfig (GPIO_Remap_SWJ_JTAGDisable, ENABLE); |