copy and pasted from the source code:
/* Two interface descriptor for 2 Virtual COM port,, each VCOM uses 3 endpoints */
/* The total number of endpoints are 6, 2 interrupt IN for modem status reading,
2 BULK OUT for COM TX, and 2 BULK IN for COM RX */
The reasoning behind the dual serial ports is mainly for debugging. As my application uses one of the ports, I'd like to have another for printing out debug messages. And both of my actual uarts are connected to hardware.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think I saw an example of a dual serial port driver for the lpc but using keil. That would be a useful example.
I have not looked into this (and I probably won't in the near future), but if you have some code for it I can have a look and try to add it.
the Code is posted in http://tech.groups.yahoo.com/group/lpc2000/files/
the file name is VirtualCOM.zip, down at the bottom.
copy and pasted from the source code:
/* Two interface descriptor for 2 Virtual COM port,, each VCOM uses 3 endpoints */
/* The total number of endpoints are 6, 2 interrupt IN for modem status reading,
2 BULK OUT for COM TX, and 2 BULK IN for COM RX */
The reasoning behind the dual serial ports is mainly for debugging. As my application uses one of the ports, I'd like to have another for printing out debug messages. And both of my actual uarts are connected to hardware.