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.
Dependents: Embedded_RTOS_Project
Fork of mmSPI by
Diff: mmSPI.cpp
- Revision:
- 2:bebcf53b72dc
- Parent:
- 1:15706d15d123
- Child:
- 3:de99451ab3c0
diff -r 15706d15d123 -r bebcf53b72dc mmSPI.cpp
--- a/mmSPI.cpp Wed Aug 14 10:09:58 2013 +0000
+++ b/mmSPI.cpp Wed Aug 14 10:30:30 2013 +0000
@@ -10,7 +10,7 @@
//==============================================//==============================
mmSPI::mmSPI() // constructor.
{
-
+ pSCLK = new DigitalOut(p29);
}
//----------------------------------------------//------------------------------
mmSPI::~mmSPI() // destructor.
@@ -20,7 +20,7 @@
//----------------------------------------------//------------------------------
char mmSPI::transceive_byte(char cSend) // send/receive a byte.
{
-
+ *pSCLK = 1;
