There is opportunity to declare "usb_strings" as a const char *const in both D11 and D21 variants. The D11 variant already benefits from const declarations of the USB descriptors; I merely applied the same to the D21 variant. Both modifications save allocated RAM and the need to copy these from flash to RAM upon initialization.
There is opportunity to declare "usb_strings" as a const char *const in both D11 and D21 variants. The D11 variant already benefits from const declarations of the USB descriptors; I merely applied the same to the D21 variant. Both modifications save allocated RAM and the need to copy these from flash to RAM upon initialization.