Vassilis Serasidis
1a676200f7
Example of using the SPI_1 and SPI_2 ports on STM32F103.
2015-06-11 15:01:45 +03:00
Roger Clark
657d6dae02
Alternative / better fix provided by @pico based on work by @victor_pv. Commented out AF REMAP of NSS in spi_f1.c
2015-06-10 10:33:13 +10:00
rogerclarkmelbourne
ece9c3681d
Added code to 'get' the gpio mode of a pin, and have used it in SPIClass::begin() to store and reinstate the pin mode of the SPI NSS pin. This is a work around for 'features' in the STM32 silicon, which seem to change the GPIO mode of the SPI NSS (hardware - 'Software Select' pin)
2015-06-10 10:25:22 +10:00
Roger Clark
2797907221
Added support for SPI 2 to VS1003 library, and made a change to SPI to support other libs being able to select which SPI they want to use (issue with const in transfer()
2015-06-06 07:46:42 +10:00
victorpv
d165e4d013
SPI updated to eliminate warnings
...
The same write function works for both 8bit and 16bit transfers, so
eliminated the 8bit one and that takes out warnings when the compiler is
not sure of the width. Tested with both ILI libraries (_STM and not STM)
2015-05-27 20:16:15 -05:00
victorpv
e13b9a0709
SPI DMA functions.
...
Adds 6 new functions: DMA Transfer, DMA 8bit send, DMA 16bit send, write
16 bit int. and mode change to change between 8bit and 16 bit transfer.
2015-05-21 22:35:40 -05:00
Roger Clark
664e1c88ac
Second attempt at SPI::DMATransfer. Now uses separate tx and rx buffers, and I also added code to wait for tx to complete and SPI to not be busy before exiting the function. Note. Operation of rx buffer has not been tested
2015-03-30 06:47:26 +11:00
Roger Clark
5f9e8a04dd
Added first pas at SPI::DMATransfer(byte *buf, int length) - and updated ILI9341 lib to use DMA Transfer for fill rect
2015-03-30 03:31:41 +11:00
Roger Clark
e9f67b2f63
Added accessor function for the spi device to spi.h
2015-03-18 20:32:56 +11:00
Roger Clark
ac742edbd7
Improved speed of SPI::write(byte)
2015-03-06 22:40:53 +11:00
Roger Clark
29ddd3beef
Update SPI library properties file to fix issue caused by changing folder namne from STM32F1XX to STM32F1
2015-02-26 07:45:16 +11:00
Roger Clark
5f83c13285
renamed top level folder STM32F1XX to STM32F1 to correspond to other top level folder names e.g. STM32F3 and STM32F4
2015-02-24 20:13:04 +11:00