x
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
diff -r bc069279eb37 -r 35df38577abd BurstSPI.h --- 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); }
diff -r bc069279eb37 -r 35df38577abd BurstSPI_STM32F4.cpp --- 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"
diff -r bc069279eb37 -r 35df38577abd BurstSPI_Unsupported.cpp --- 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