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.
Diff: simplelink/cc3100_spi.cpp
- Revision:
- 16:7e5aab2fabba
- Parent:
- 15:5433f9d94cd7
- Child:
- 17:acc075ff3fcb
--- a/simplelink/cc3100_spi.cpp Fri Aug 28 21:04:44 2015 +0000
+++ b/simplelink/cc3100_spi.cpp Sun Aug 30 21:10:11 2015 +0000
@@ -55,7 +55,7 @@
{
_wlan_spi.format(8,1);
- _wlan_spi.frequency(12000000);
+ _wlan_spi.frequency(16000000);
_wlan_irq.rise(this, &cc3100_spi::IntSpiGPIOHandler); //_SlDrvRxIrqHandler is called from IntSpiGPIOHandler
// _sw1_irq.rise(this, &cc3100_spi::buttonHandler_1);
// _sw2_irq.rise(this, &cc3100_spi::buttonHandler_2);
@@ -140,12 +140,14 @@
int len_to_return = len;
// Uart_Write((uint8_t*)"Write\r\n");
_wlan_cs = 0;
-
+// for(int i = 0;i<len;i++){
+// printf(" %x",pBuff[i]);
+// }
while(len) {
_wlan_spi.write(*pBuff++);
len--;
}
-
+// printf("\r\n");
_wlan_cs = 1;
return len_to_return;
@@ -159,8 +161,9 @@
for (i = 0; i < len; i++) {
pBuff[i] = _wlan_spi.write(0xFF);
+// printf(" %x",pBuff[i]);
}
-
+// printf("\r\n");
_wlan_cs = 1;
return len;
}