Commit Graph

11 Commits

Author SHA1 Message Date
Roger Clark d188c06504 Added missing (dummy) functions attach and detach interrupt to SPIClass (taken from SAM version), and added hooks.c for yield function. Note. use of yield() at the moment isn't possible, because the linker seems unable to find the function even though hooks.c is being compiled 2014-12-29 16:51:35 +11:00
Roger Clark 33707ecb0a Added SPI_CLOCK_DIV1 to give 18Mhz SPI (as requested by Alexey - @HiddenPilot on the Arduino forum) 2014-12-25 14:45:00 +11:00
Roger Clark 488a344693 Added comments to support the theory that setDataMode numbers appear to be the same on the AVR as they are on the STM32, so I'll assume this is OK until someone tests it (somehow) and lets me know its not working ;-) 2014-12-24 19:58:47 +11:00
Roger Clark 37659f115f minor change so the SPI rates below 1.25 mhz are not available as this may cause an ASSERT in the leaflabs code 2014-12-24 17:58:38 +11:00
Roger Clark 2f94a04c0c implemented setClockDivider and setBitOder, also started work on setDataMode - however this probably doesn't work correctly at the moment unless using mode0, because I have not worked out the mapping between the AVR mode numbersd and what the STM32 requires 2014-12-24 17:53:56 +11:00
Roger Clark a327d7bd38 Removed redundant / junk files 2014-12-05 21:17:45 +11:00
Roger Clark 8ea511cd48 Put fix from leaflabs into Wire.cpp to replace my fix, and added stub function for setClockDivider into SPI.cpp and .h so that it compiles under 1.5.7 2014-11-23 18:57:59 +11:00
Roger Clark a2493c2c48 removed redundant code to set and reset Slave Select pin 2014-11-23 10:20:13 +11:00
Roger Clark 1bf7106e2c Moved SPI SS from PC13 to PA4 2014-11-22 21:54:58 +11:00
Roger Clark 326959b659 Put software select on PC13 testing 2014-11-22 18:03:54 +11:00
Roger Clark 8c6d25b4c0 Absolutely masses of changes, and general restructure in order to get the SPI library to at least compile ;-) 2014-11-22 06:46:57 +11:00