buda

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: STM32F302 as USB Virtual Com Port Device. #9127
    buda
    Participant

    Hi,

    I am trying to create composite USB from STM32f446 (Nucleo board). I started from USB_CDC example, but got stuck when I had to add more configuration descriptors, because I don’t see how to register more than one class:

     

    USBD_Init(&USBD_Device, &COMPOSITE_Desc, 0);
    USBD_RegisterClass(&USBD_Device, &USBD_CDC);
    USBD_CDC_RegisterInterface(&USBD_Device, &USBD_CDC_SIT_V2_fops);
    USBD_Start(&USBD_Device);

    I would appreciate any advice on this matter. Thanks!

Viewing 1 post (of 1 total)