I have an atmega16u2 project using LUFA for HID. I added a serial device and decided to use LUFA lightwight ring buffer to manage serial stream. But I started getting "USB device not recognized" messages when I added my ring buffer code. Long story short, when I remove all other ring buffer activites, it appears that the initalizion of the ring buffer is the start/cause the problem. What silly thing have I overlooked?
RingBuffer_t BTtoFF_Buffer; uint8_t BTtoFF_Buffer_Data; RingBuffer_InitBuffer(&BTtoFF_Buffer,BTtoFF_Buffer_Data, sizeof(BTtoFF_Buffer_Data));