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.
Revision 11:ea7a6f42c9bf, committed 2020-11-16
- Comitter:
- mmdonatti
- Date:
- Mon Nov 16 13:59:15 2020 +0000
- Parent:
- 10:62e78c16bb4d
- Commit message:
- new version with debug
Changed in this revision
ad7172.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ad7172.cpp Fri Jul 31 17:02:40 2020 +0000 +++ b/ad7172.cpp Mon Nov 16 13:59:15 2020 +0000 @@ -68,7 +68,7 @@ : _spi(p_spi), _rdy(p_rdy) { _spi.format(8,3); //8 bits ; POL=1 ; PHASE=1 - _spi.frequency(10000000); //10 MHz SPI clock rate + _spi.frequency(10000000); //20 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