Code clean up and handling FIFO errors

Revision:
1:63dd03580de4
Parent:
0:85855ecd3257
Child:
5:0728bde67bdb
diff -r 85855ecd3257 -r 63dd03580de4 common/platform.h
--- a/common/platform.h	Mon Apr 01 11:09:52 2019 +0000
+++ b/common/platform.h	Mon Apr 15 14:36:02 2019 +0000
@@ -12,11 +12,11 @@
 #    define PLATFORM_SPI_MOSI        SPI_MOSI
 #    define PLATFORM_SPI_MISO        SPI_MISO
 #    define PLATFORM_SPI_SCK         SPI_SCK
-#    define PLATFORM_SPI_CS          D10
+#    define PLATFORM_SPI_CS          D9
 #    define PLATFORM_GPIO_RESET      D6
-#    define PLATFORM_GPIO_ERROR      D3
-#    define PLATFORM_GPIO_ALERT      D4
-#    define PLATFORM_GPIO_DATAREADY  D5
+#    define PLATFORM_GPIO_ERROR      D2
+#    define PLATFORM_GPIO_ALERT      D3
+#    define PLATFORM_GPIO_DATAREADY  D4
 #    define PLATFORM_LOG_TX          D1
 #    define PLATFORM_LOG_RX          D0
 #  elif defined(TARGET_ADUCM4050)