mbed library sources

Dependents:   SPI_slave_frdm

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
armdran
Date:
Wed Apr 01 09:08:17 2015 +0000
Parent:
499:d0e9408fd176
Commit message:
debugt output addded

Changed in this revision

targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/spi_api.c Show annotated file Show diff for this revision Revisions of this file
diff -r d0e9408fd176 -r 222d8913df56 targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/spi_api.c
--- a/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/spi_api.c	Sat Mar 28 08:15:07 2015 +0000
+++ b/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/spi_api.c	Wed Apr 01 09:08:17 2015 +0000
@@ -179,7 +179,9 @@
 }
 
 static inline int spi_readable(spi_t * obj) {
+    //printf("::spi_readable:: status %x mask %x\r\n", obj->spi->S, SPI_S_SPRF_MASK);
     return (obj->spi->S & SPI_S_SPRF_MASK) ? 1 : 0;
+    //return (obj->spi->S & 0x20) ? 1 : 0;
 }
 
 int spi_master_write(spi_t *obj, int value) {