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: ad7172.cpp
- Revision:
- 10:62e78c16bb4d
- Parent:
- 9:e71f2bdd2f83
- Child:
- 11:ea7a6f42c9bf
diff -r e71f2bdd2f83 -r 62e78c16bb4d ad7172.cpp --- a/ad7172.cpp Wed Jul 01 14:30:54 2020 +0000 +++ b/ad7172.cpp Fri Jul 31 17:02:40 2020 +0000 @@ -57,7 +57,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *********************************************************************/ -#define DEBUG //Debug interface +//#define DEBUG //Debug interface #include "ad7172.h" //Importing AD7172 library @@ -71,7 +71,6 @@ _spi.frequency(10000000); //10 MHz SPI clock rate continuous_on = 0; //Continuous read mode flag cs = new DigitalOut(slave_select); //Define cs as digital out variable referred to slave_select pin - Reset(); //Calling the AD7172-2 restart function } @@ -115,6 +114,7 @@ *cs=1; continuous_on =0; } + } //@AD7172 Read Device ID - Communication Test. @@ -176,7 +176,6 @@ for(i=0;i<=7;i++) _spi.write(0xFF); *cs=1; - } //@brief Waits until a new conversion result is available.
