fork from Sog

Dependencies:   NNN50_WIFI_API

Fork of mbed_SPIS_multiByte_example_SOG by Sog Yang

Revision:
5:6a1155885fc9
Parent:
2:c520d7c7739d
--- a/SPISlave_multiByte.cpp	Thu Jun 01 07:59:21 2017 +0000
+++ b/SPISlave_multiByte.cpp	Tue Jun 13 04:34:01 2017 +0000
@@ -27,7 +27,7 @@
  {
     spi_init_multibyte(&_spi, mosi, miso, sclk, ssel);
     spi_format_multibyte(&_spi, _bits, _mode, 1);
-    spi_frequency_multibyte(&_spi, _hz);
+   // spi_frequency_multibyte(&_spi, _hz);
 }
 
 void SPISlave_multiByte::format(int bits, int mode) {
@@ -53,6 +53,10 @@
     spi_slave_write_multibyte(&_spi, value, bytes);
 }
 
+bool SPISlave_multiByte::readable(void){
+     return get_spi_slave_readable(&_spi);
+    }
+
 } // namespace mbed
 
 #endif
\ No newline at end of file