Hi guys, a few days ago one of my college professors handled me some code adapted from usb_dev_serial so I could start working with USB communications with my PC. As far as I can tell, code is interruption-oriented and so far I could only receive characters one at a time every time the interrupt is triggered. Since I need to sent date and time to the microcontroller I wouldn´t like to be receving chars one at a time and checking if I stil have anything left to receive. I wanted to end the received string with '\n' in order to get the Rx part finished, but I can´t figure out how to do this.
I´m attaching in a .rar the files and posting here Rx interrupt handler (I´ve just went back to just receving one char). By the way I´m working with a custom board, ArLinkEx as debugger, and CooCox as my IDE.