这一句实际就是对应图一中SYS配置选项的, __HAL_AFIO_REMAP_SWJ_DISABLE()是一个宏定义,在文件 stm32f1xx_hal_gpio_ex.h 中:
- /**
- * [url=home.php?mod=space&uid=247401]@brief[/url] Disable the Serial wire JTAG configuration
- * [url=home.php?mod=space&uid=536309]@NOTE[/url] DISABLE: JTAG-DP Disabled and SW-DP Disabled
- * @retval None
- */
- #define __HAL_AFIO_REMAP_SWJ_DISABLE() do{ CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_SWJ_CFG); \
- SET_BIT(AFIO->MAPR, AFIO_MAPR_SWJ_CFG_DISABLE); \
- }while(0U)
|