Tool/software: Code Composer Studio
Good day!
Recently I realized that USB library has small error:
//***************************************************************************** // // USB_CDC_SET_CONTROL_LINE_STATE, wValue // //***************************************************************************** #define USB_CDC_DEACTIVATE_CARRIER \ 0x00 #define USB_CDC_ACTIVATE_CARRIER \ 0x02 #define USB_CDC_DTE_NOT_PRESENT 0x00 #define USB_CDC_DTE_PRESENT 0x01
But, in fact, as I open CDC port with terminal, code 3 (which maybe mean USB_CDC_DTE_PRESENT?) comes, and upon terminal shutdown code 2 (or 0, with different terminal) comes.