예제 #1
0
파일: main.c 프로젝트: thegeek82000/asf
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;
    }
}
예제 #2
0
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);
	}
}
예제 #3
0
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);
	}
}