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:
- 26:1b988c505139
- Parent:
- 24:dae7123d432a
--- a/examples/drvdiag/config.h Wed May 18 16:57:57 2016 +0300 +++ b/examples/drvdiag/config.h Thu Aug 18 14:46:42 2016 +0300 @@ -50,7 +50,11 @@ //#define AD7790_PRESENT //#define AD5270_PRESENT //#define CN0357_PRESENT -#define ADXL362_PRESENT +//#define ADXL362_PRESENT +//#define CN0398_PRESENT +//#define CN0397_PRESENT +#define CN0396_PRESENT +//#define AD7124_PRESENT #define SPI_LOW_LEVEL #ifdef AD7791_PRESENT @@ -83,6 +87,27 @@ #include "ADXL362_Diag.h" #endif +#ifdef AD7124_PRESENT +#include "AD7124.h" +#include "AD7124_Diag.h" +#endif + +#ifdef CN0398_PRESENT +#include "CN0398.h" +#include "CN0398_Diag.h" +#endif + + +#ifdef CN0397_PRESENT +#include "CN0397.h" +#include "CN0397_Diag.h" +#endif + +#ifdef CN0396_PRESENT +#include "CN0396.h" +#include "CN0396_Diag.h" +#endif + using namespace std; //------------------------------------ // Hyperterminal configuration @@ -91,7 +116,7 @@ #ifdef SPI_LOW_LEVEL //DigitalOut CSA_pin(D8); // cs adc -DigitalOut CSA_pin(D9); // cs accel +DigitalOut CSA_pin(D4); // cs accel DigitalOut CSR_pin(D6); // cs rdac SPI spibus(SPI_MOSI, SPI_MISO, SPI_SCK); #endif @@ -127,3 +152,27 @@ ADXL362 adxl362(D9); ADXL362_Diag adxl362diag(adxl362); #endif + + +#ifdef AD7124_PRESENT +AD7124 ad7124(D10); +AD7124_Diag ad7124diag(ad7124); +#endif + +#ifdef CN0398_PRESENT +CN0398 cn0398(D10); +CN0398_Diag cn0398diag(cn0398); + +#endif + +#ifdef CN0397_PRESENT +CN0397 cn0397(D10); +CN0397_Diag cn0397diag(cn0397); +#endif + +#ifdef CN0396_PRESENT +#include "AD5270_Diag.h" +CN0396 cn0396(D10, D6, D4); +CN0396_Diag cn0396diag(cn0396); +AD5270_Diag ad5270diag(cn0396.rdac); +#endif