I'm using the LPCXpresso54608 SDK for MCUXpresso. In particular, I'm running the generic HID device with FreeRTOS example code (link to my code/setup).
One of the settings is to enable the double buffer in usb_device_lpcip3511.h:
#define USB_DEVICE_IP3511_DOUBLE_BUFFER_ENABLE (1u)
The double buffer is enabled by default. It seems to add a layer of complexity that I'm not sure I need, and I'm not so sure it is even working correctly with the example!
Could someone enlighten me on the purpose/intended use of the double buffer?