0 Replies Latest reply on Feb 24, 2014 8:08 PM by garry.knudson

    Typo in USBFS_v2_60.pdf for USBUART_CDC_Init() details...

    garry.knudson

      Hi All,

         

      I ran into this and took awhile to find the problem... thought I would write this while it was fresh.

         

      USBFS_v2_60.pdf Page 57:

         

      The discription for the "void USBUART_CDC_Init(void)" function gives an example using USBUART_GetConfiguration() to wait until the host has enumerated and configured the device. 

         

      USBUART_Start(…);
      while(USBUART_GetConfiguration()){};
      USBUART_CDC_Init();

         


       

         

      The second line should have been "while(!USBUART_GetConfiguration()); ".. note the added "!" to invert the returned value from the get configuration function.  The example above does not wait as indicated in the discription.  The problem showed in my test software, where the Psoc could write to the PC but the PC could not write to the Psoc.