Added new Benito project, a simple modified USB-to-Serial bridge for the programming of AVRs using the official Arduino bootloader.

This commit is contained in:
Dean Camera 2009-07-23 10:39:10 +00:00
parent 5dbfdaa17d
commit a6e85d6ed8
16 changed files with 3045 additions and 6 deletions

View file

@ -75,8 +75,7 @@ int main(void)
{
CheckJoystickMovement();
uint16_t BytesToDiscard = CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface);
while (BytesToDiscard--)
while (CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface))
CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface);
CDC_Device_USBTask(&VirtualSerial_CDC_Interface);