Re: [libopencm3-devel] Question regarding SPI api for libopencm3 on STM32F4

2015-01-29 Thread Felix Ruess
Hi Johan, it is rather similar to F1, just some different names for DMA stuff. You can probably start from a F1 example: https://github.com/libopencm3/libopencm3-examples/blob/master/examples/stm32/f1/lisa-m-2/spi_dma/spi_dma.c and make the changes for F4 (dma_stream_x instead of dma_channel_x).

[libopencm3-devel] Question regarding SPI api for libopencm3 on STM32F4

2015-01-28 Thread Johan
I am using SPI on my STM32F4 Discovery board together with libopencm3. The function I use is spi_send located in spi_common_all.c This function is blocking and sends one byte(short) at a time. I wonder if there is some driver/API in libopencm3 to use SPI on STM32F4 in interrupt or DMA mode? Best