allow a sketch access to these two bits DTR and RTS then
allow a sketch access to these two bits DTR and RTS then


allow a sketch access to these two bits DTR and RTS then
see chipkit.net forum post
http://chipkit.net/forum/viewtopic.php?f=19&t=3839  

arduino code example:
=============

#include <Arduino.h>
#include "USB.h"

#define LED_DTR 24 // RA8 
#define LED_RTS 27 // RA9 

USBFS usbDriver;
USBManager USB(usbDriver, 0x0403, 0xA662);

CDCACM usbSerialPort;

void setup() {

	// PINS as Output
	pinMode(LED_DTR,OUTPUT);
	pinMode(LED_RTS,OUTPUT);

	// pins set 0
	digitalWrite(LED_DTR,0);
	digitalWrite(LED_RTS,0);

	USB.addDevice(usbSerialPort);
	USB.begin();
}

void loop() {

	// Testcase
	usbSerialPort.print("\r"); // start allways in the same line
	// usbSerialPort.print("_Line Status is: ");
	usbSerialPort.print(usbSerialPort.getLineState());
    usbSerialPort.print("\r"); // simple return

	if (usbSerialPort.getRTS()==true) {
		digitalWrite(LED_RTS,1);
	}

	if (usbSerialPort.getRTS()!=true) {
		digitalWrite(LED_RTS,0);
	}


	if (usbSerialPort.getDTR()==true) {
		digitalWrite(LED_DTR,1);
	}

	if (usbSerialPort.getDTR()!=true) {
		digitalWrite(LED_DTR,0);
	}
}
ricklon/chipKIT-core,majenkotech/chipKIT-core,pontech/chipKIT-core,ricklon/chipKIT-core,EmbeddedMan/chipKIT-core,pontech/chipKIT-core,majenkotech/chipKIT-core,pontech/chipKIT-core,chipKIT32/chipkit-core,pontech/chipKIT-core,adamwolf/chipKIT-core,ricklon/chipKIT-core,majenkotech/chipKIT-core,majenkotech/chipKIT-core,chipKIT32/chipkit-core,pontech/chipKIT-core,EmbeddedMan/chipKIT-core,chipKIT32/chipkit-core,adamwolf/chipKIT-core,EmbeddedMan/chipKIT-core,EmbeddedMan/chipKIT-core,adamwolf/chipKIT-core,adamwolf/chipKIT-core,ricklon/chipKIT-core,EmbeddedMan/chipKIT-core,EmbeddedMan/chipKIT-core,ricklon/chipKIT-core,adamwolf/chipKIT-core,adamwolf/chipKIT-core,pontech/chipKIT-core,majenkotech/chipKIT-core,majenkotech/chipKIT-core,EmbeddedMan/chipKIT-core,adamwolf/chipKIT-core,ricklon/chipKIT-core,majenkotech/chipKIT-core,pontech/chipKIT-core,chipKIT32/chipkit-core,chipKIT32/chipkit-core