I've got Martin Thomas' BasicUSB demo working in "mode 1", where data on
the SAM7S UART is passed over USB to a "virtual" COM port on the host
and vice versa.
I'm trying to send characters to the virtual COM port independant of the
SAM7 UART (in order to use the virtual port as a debug interface). That
is, I just need a "virtual_printk()" function that outputs a string over
USB to the virtual COM port.
I thought I could just use the pCDC.Write() function, but this only
outputs the string when characters are typed in at a terminal connected
to the virtual port. There is something going on with the interupts that
I don't understand.
Can someone please tell me what is preventing the data from being
written directly to the virtal COM port?
Thanks, - Joe
// Check enumeration
// Send string to virtual COM port (not working)
// testdata only sent when character entered
// at virtual COM port terminal application.
pCDC.Write(&pCDC, testdata, strlen(testdata) );
length = pCDC.Read(&pCDC, data, MSG_SIZE);
Trace_Toggel_LED( LED1) ;