Hi Hervé
With the define MJBC_DEVELOP_MASS_STORAGE set, the mass storage class is used.
Without the define MJBC_DEVELOP_MASS_STORAGE the CDC class is used.
I don't think that it is possible for both classes to be active at the same time - during the enumeration one of them must be reported. I may be wrong and it may be possible to configure a device with multiple classes (composite device?) using an appropriate setup but the code must also be modified to be able to do multiple functions at the same time.
It would be possible to change from one class to a another by having two tasks - one containing the CDC class code and the other containig the mass storage class code. It would be necessary to only allow the required task to start depending on which class is to be reported, or swap between enumerations.
Regards
Mark
P.S. Note that MJBC_DEVELOP_MASS_STORAGE is a development define to allow easily switching. Depending on suitability there will later be either two USB task codes or a new define name will be used. [MJBC_ type defines distinguish developemnt (Beta) code]