tests/stm32vldiscovery/hw.c
__attribute__((constructor)) void disable_jtag ()
{
    RCC_ENABLE (_AFIO);
    AFIO->MAPR |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE;
}
// At early initialization disable JTAG, enable SWD
At early initialization disable JTAG, enable SWD
At early initialization disable JTAG enable SWD
__attribute__((constructor)) void disable_jtag ()
{
    RCC_ENABLE (_AFIO);
    AFIO->MAPR |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE;
}
__attribute__ ( ( constructor ) ) void disable_jtag ( ) { RCC_ENABLE ( _AFIO ) ; AFIO -> MAPR |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE ; }
At early initialization disable JTAG, enable SWD
At early initialization disable JTAG enable SWD