AnsweredAssumed Answered

USB Generic HID Device Example Code - What is the benefit of enabling the double buffer?

Question asked by Nick Guzzardo on Sep 28, 2018
Latest reply on Oct 26, 2018 by Nick Guzzardo

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:



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?