I am trying to have a device recognized as a virtual serial port and a keyboard by the computer with the LUFA library. I am using an atmega32u4 clocked at 8MHz.
I managed to send and receive data with the serial port and to send keystrokes with the keyboard. However I can't have the device receive a led report when it is enumareted as a composite device. But I get a report when the device is configured only as a keyboard.
I do not understand why the behavior is different in both cases. I searched in the demos but I only found a virtual serial and mouse device.
Maybe the descriptor is bad constructed when I enable the serial port and the keyboard ?
Do you see anything wrong with the code ? I attached a minimal example to the post. If there are not enough comments in the code or whatever, I will try to correct it as soon as possible.