Perhaps the easiest way is to search on github for usbd_poll()
and see all the applications people are using it with.

https://github.com/libopencm3/libopencm3/wiki/Showcase might have
some more ideas too.

I've got a (nearly) complete usb2serial example, but it's not
passing all my tests at all baudrates without corrupting
occasional bytes yet, so it's not available in the repos yet. :(
never enough time.

Cheers,
Karl P

kristoff <[email protected]> wrote:
> Hi,
> 
> 
> Can somebody explain how to really use the CDC ACM (serial over
> usb) on a STM32F1?
> 
> 
> In libopencm3-examples, there is an example on using cdc acm
> (serial-over-usb), however I cannot modify the example to do
> something usefull.
> 
> The example only sets up the cdcacm-device and then does two
> things:
> - there is an endless loop that just does usbd_poll
> - inside the callback function, there is some code that echoes the 
> characters it received back to the usb-device.
> 
> 
> But how do you write an application that actually does
> something usefull? When I modify the "usbd_poll" loop to
> actually does something (like just print out a line "count =
> ...", this results in errors when I boot the device (i.e.
> "Device not responding to setup address.").
> 
> So it looks like you really need to have this continues-cycle
> of the usbd_poll running.
> 
> 
> So how I you actually make an application that uses that cdcacm
> interface and make it actually do something usefull?
> 
> 
> 
> Cheerio! Kr. Bonne.
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> libopencm3-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libopencm3-devel

Attachment: signature.html
Description: OpenPGP Digital Signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
libopencm3-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel

Reply via email to