/* Before compile in Keil, select your target, I made some settings for different targets  */
int main(void)
/* Before compile in Keil, select your target, I made some settings for different targets  */
int main(void)
{
        if (TM_USB_VCP_GetStatus() == TM_USB_VCP_CONNECTED) {
            TM_DISCO_LedOn(LED_GREEN);
            if (TM_USB_VCP_Getc(&c) == TM_USB_VCP_DATA_OK) {
                TM_USB_VCP_Putc(c);
            }
        } else {
            TM_DISCO_LedOff(LED_GREEN);
        }
    }
}