I'm going to guess you didn't actually copy that file, because looking at
it in the repo on Github it already had the periph_clock changes in it, and
it correctly initializes the USB device. Since I have a copy of the repo I
cd to the directoy and type make it compiles without errors.
That said, y
Thanks but I already did, thats how I found that the code I have was copied
from that file. The difference being that it uses
interrupt NVIC_OTG_FS_IRQ to know when to poll. Are there some
docs/examples on how to use usb interrupts'
for f3?
On 16 July 2014 22:52, Chuck McManis wrote:
> github
github://libopencm3-examples/
Look in the examples/stm32/f3/stm32f3-discovery directory for examples.
On Wed, Jul 16, 2014 at 1:27 PM, Luis Rodrigues
wrote:
> Its STM32F302R8T6, so I guess it does not have OTG.
>
> Just realized one of the files I'm converting basically is
> "usb_cdcacm/cdcacm
Its STM32F302R8T6, so I guess it does not have OTG.
Just realized one of the files I'm converting basically is
"usb_cdcacm/cdcacm.c" (from examples) with added stuff:
nvic_enable_irq(NVIC_OTG_FS_IRQ); and then:
void otg_fs_isr(void) { (this is interrupt handler, right?)
usbd_poll(usbd_dev);
The code recently changed (well a couple of months ago) so that instead of
rcc_peripheral_enable_clock( ...) its now simply
rcc_periph_clock_enable(RCC_GPIOA) for example, But perhaps more
importantly I don't believe the f3 has a USB OTG i/o port, I believe it is
device only USB so there will be no
Hi all,
I'm a complete noobie at programming MCUs, I'm trying to port some code
made for smt32f4 to a stm32f3.
I have some code that:
nvic_enable_irq(NVIC_OTG_FS_IRQ);
rcc_peripheral_enable_clock(&RCC_AHB1ENR, RCC_AHB1ENR_IOPAEN);
rcc_peripheral_enable_clock(&RCC_AHB2ENR, RCC_AHB2ENR_O