A collection of Analog Devices drivers for the mbed platform
For additional information check out the mbed page of the Analog Devices wiki: https://wiki.analog.com/resources/tools-software/mbed-drivers-all
Diff: examples/drvdiag/config.h
- Revision:
- 19:fb92949e59c9
- Parent:
- 13:66c8e4ce4ff1
- Child:
- 24:dae7123d432a
--- a/examples/drvdiag/config.h Fri Apr 29 17:34:07 2016 +0300 +++ b/examples/drvdiag/config.h Tue May 17 14:21:17 2016 +0300 @@ -45,11 +45,12 @@ * ********************************************************************************/ -#define AD7791_PRESENT -#define CN0216_PRESENT +//#define AD7791_PRESENT +//#define CN0216_PRESENT //#define AD7790_PRESENT //#define AD5270_PRESENT //#define CN0357_PRESENT +#define ADXL362_PRESENT #define SPI_LOW_LEVEL #ifdef AD7791_PRESENT @@ -77,6 +78,11 @@ #include "cn0357_diag.h" #endif +#ifdef ADXL362_PRESENT +#include "ADXL362.h" +#include "adxl362_diag.h" +#endif + using namespace std; //------------------------------------ // Hyperterminal configuration @@ -84,7 +90,8 @@ //------------------------------------ #ifdef SPI_LOW_LEVEL -DigitalOut CSA_pin(D8); // cs adc +//DigitalOut CSA_pin(D8); // cs adc +DigitalOut CSA_pin(D9); // cs accel DigitalOut CSR_pin(D6); // cs rdac SPI spibus(SPI_MOSI, SPI_MISO, SPI_SCK); #endif @@ -114,3 +121,9 @@ CN0357 cn0357; CN0357_Diag cn0357diag(cn0357); #endif + + +#ifdef ADXL362_PRESENT +ADXL362 adxl362(D9); +ADXL362_Diag adxl362diag(adxl362); +#endif
CN0357 - Toxic gas measurement
CN0216 - Weight Scale