Hello Antun,
The usb_host_config.h header file is generated as a parameterized template. The USB_HOST_CONFIG_CONFIGURATION_MAX_INTERFACE definition is generated as a fixed value now. It means that all changes are overwritten whenever you update the code. You must uncheck the code update of the header file to preserve your changes. See the following screenshot:
marek_neuzil_0-1645707519060.png
But this solution should be used when all USB host settings are selected. When you disable update of the header file any modification of the USB host configuration in the USB component UI will not be applied in your application code.
Best Regards,
Marek Neuzil