Here is an example of using interrupts with USB. This is on an STM32F1. The
name of the interrupt may be different on the F4.
https://github.com/openstenoproject/stenosaurus/blob/master/bootloader/usb.c#L389

This is the main:
https://github.com/openstenoproject/stenosaurus/blob/master/bootloader/main.c


On Thu, May 28, 2015 at 4:05 AM, Johan <kungjo...@gmail.com> wrote:

> I have tested the example available in libopencm3-examples
> <https://github.com/libopencm3/libopencm3-examples>/examples
> <https://github.com/libopencm3/libopencm3-examples/tree/master/examples>/
> stm32
> <https://github.com/libopencm3/libopencm3-examples/tree/master/examples/stm32>
> /f4
> <https://github.com/libopencm3/libopencm3-examples/tree/master/examples/stm32/f4>
> /stm32f4-discovery
> <https://github.com/libopencm3/libopencm3-examples/tree/master/examples/stm32/f4/stm32f4-discovery>
> /*usb_cdcacm*/
>
> It is working good for me, but it uses a polling execution model for
> servicing the usb.
>
> Line 244 in main();
> while (1)
> {
>     usbd_poll(usbd_dev);
> }
>
> I wonder if there are any example of using using usb with interrupts.
>
> Best regards
> Johan
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> libopencm3-devel mailing list
> libopencm3-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libopencm3-devel
>
>
------------------------------------------------------------------------------
_______________________________________________
libopencm3-devel mailing list
libopencm3-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel

Reply via email to