1-Wire® library for mbed. Complete 1-Wire library that supports our silicon masters along with a bit-bang master on the MAX32600MBED platform with one common interface for mbed. Slave support has also been included and more slaves will be added as time permits.

Dependents:   MAXREFDES131_Qt_Demo MAX32630FTHR_iButton_uSD_Logger MAX32630FTHR_DS18B20_uSD_Logger MAXREFDES130_131_Demo ... more

Superseded by MaximInterface.

Revision:
120:200109b73e3c
Parent:
112:82eb520a644b
--- a/Masters/DS2480B/DS2480B.cpp	Mon Aug 22 21:48:41 2016 +0000
+++ b/Masters/DS2480B/DS2480B.cpp	Tue Sep 06 09:25:52 2016 -0500
@@ -740,7 +740,7 @@
             serial.putc(outbuf[idx++]);
         }
 
-    } while ((idx < outlen) && (timer.read_us() < timeout));
+    } while ((idx < outlen) && (static_cast<unsigned int>(timer.read_us()) < timeout));
     
     if (idx == outlen)
     {
@@ -768,7 +768,7 @@
         {
             inbuf[num_bytes_read++] = serial.getc();
         }
-    } while ((num_bytes_read < inlen) && (timer.read_us() < timeout));
+    } while ((num_bytes_read < inlen) && (static_cast<unsigned int>(timer.read_us()) < timeout));
     timer.stop();
 
     if (num_bytes_read == inlen)