Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BurstSPI by
Revision 14:35df38577abd, committed 2018-07-23
- Comitter:
- JackB
- Date:
- Mon Jul 23 12:23:44 2018 +0000
- Parent:
- 13:bc069279eb37
- Commit message:
- BSPI
Changed in this revision
--- a/BurstSPI.h Sat May 16 11:09:59 2015 +0000
+++ b/BurstSPI.h Mon Jul 23 12:23:44 2018 +0000
@@ -60,6 +60,9 @@
* Use it, it takes very little time to execute, so can't hurt.
*/
void setFormat( void ) {
+ int _hz = 54000000;
+ int _bits = 8;
+ int _mode = 0;
format(_bits, _mode);
frequency(_hz);
}
--- a/BurstSPI_STM32F4.cpp Sat May 16 11:09:59 2015 +0000 +++ b/BurstSPI_STM32F4.cpp Mon Jul 23 12:23:44 2018 +0000 @@ -1,3 +1,4 @@ +//#if (defined(TARGET_STM32F4) || defined(TARGET_STM32F7)) #if defined(TARGET_STM32F4) #include "BurstSPI.h"
--- a/BurstSPI_Unsupported.cpp Sat May 16 11:09:59 2015 +0000 +++ b/BurstSPI_Unsupported.cpp Mon Jul 23 12:23:44 2018 +0000 @@ -1,6 +1,7 @@ #if !(defined(TARGET_KL25Z) || defined(TARGET_KL46Z)) #if !(defined(TARGET_LPC1768) || defined(TARGET_LPC1114) || defined(TARGET_LPC11U24) || defined(TARGET_LPC13XX) || defined(TARGET_LPC1549)) #if !(defined(TARGET_NUCLEO_L152RE) || defined(TARGET_STM32F4)) +//#if !(defined(TARGET_NUCLEO_L152RE) || defined(TARGET_STM32F4) || defined(TARGET_STM32F7)) #warning BurstSPI target not supported, reverting to regular SPI
