This is a USB Serial firmware for the ATmega16U2 on the Arduino Uno R3 and Arduino Mega 2560, made from scratch using Atmel Studio 7 and its LUFA Library extension.
tewarid/arduino-usb-serial
USB Serial firmware for the ATmega16U2 on the Arduino Uno R3 and Arduino Mega 2560
C