Commit Graph

15 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
Roger Clark 18d6a286a4 Various fixes. Changed stm32.h to remove compile warnings. Changed Wire files to make Wire compile with I2CDev by addition of BUFFER_LENGTH definition, and fixed issue that prevented I2CScanner from working, - by changes in WireBase.cpp, Wire.cpp. Also fixed issue with SCL and SDA pin assignments being the reverse of hardware I2C - to enable future upgrades to Hardware I2C on the same pins, i.e PB6 and PB6 I2C channel 1 2014-11-11 20:10:00 +11:00
Roger Clark f104d47f61 Added RTClock to libraries, from bubulindo/MapleRTC on github. Currently it doesn't compile because the installation process involves replacing the core system rcc.c and rcc.h with the files from the New RCC folder. However when I attempted this, it still didnt compile, and stopped even the bare minimum compiling. I have contacted the author via a github issue to see if he can advise 2014-11-03 09:37:05 +11:00
Roger Clark 364c0c07f0 Changed upload speed to 203400 which seems to work for my USB to Serial adaptor, remove -b 203400 from tools/upload_serial.bat if this causes a problem, also there seemed to be an issue of EEPROM lib not compiling any more, so I commented out 2 includes which it could not find but seemed not to be needed any more. 2014-11-03 08:53:01 +11:00
Roger Clark 5a79e664af Renamed maple to STM32F1XX so that ARDUINO_ARCH definition correctly reflects the device architecture 2014-10-31 20:27:28 +11:00