void main_cdc_set_dtr(uint8_t port, bool b_enable) { if (b_enable) { ui_com_open(port); b_com_port_opened = true; } else { ui_com_close(port); b_com_port_opened = false; } }
void main_cdc_set_dtr(uint8_t port, bool b_enable) { if (b_enable) { // Host terminal has open COM ui_com_open(port); }else{ // Host terminal has close COM ui_com_close(port); } }
void main_cdc_set_dtr(uint8_t port, bool b_enable) { if (b_enable) { // Host terminal has open COM main_port_open |= 1 << port; ui_com_open(port); main_cdc_open(port); }else{ // Host terminal has close COM main_port_open &= ~(1 << port); ui_com_close(port); main_cdc_close(port); } }