Rohan Gurav
/
Sean_AdiSense1000_V21
ADISense1000 Version 2.1 code base
Fork of AdiSense1000_V21 by
Diff: main.cpp
- Branch:
- v2.0
- Revision:
- 31:de49744b57a6
- Parent:
- 30:119ff4f3aef6
--- a/main.cpp Tue Jun 12 21:27:34 2018 +0100 +++ b/main.cpp Fri Jun 22 09:29:24 2018 +0100 @@ -57,10 +57,11 @@ * */ #include "mbed.h" -#include "inc/adi_sense_api.h" -#include "inc/adi_sense_1000/adi_sense_1000_api.h" -#include "inc/adi_sense_log.h" +#include "adi_sense_api.h" +#include "adi_sense_1000/adi_sense_1000_api.h" +#include "adi_sense_log.h" #include "common/utils.h" +#include "common/platform.h" extern ADI_SENSE_CONFIG cjc0_thermistor_10k_ntc_config; extern ADI_SENSE_CONFIG sensor0_rtd_2w_pt100_config; @@ -89,28 +90,7 @@ /* Change the following pointer to select any of the configurations above */ static ADI_SENSE_CONFIG *pSelectedConfig = &sensor0_rtd_2w_pt100_config; -static ADI_SENSE_CONNECTION connectionInfo = { - .type = ADI_SENSE_CONNECTION_TYPE_SPI, - .spi = { - .mosiPin = SPI_MOSI, - .misoPin = SPI_MISO, - .sckPin = SPI_SCK, - .csPin = D10, - .maxSpeedHz = 2000000, - }, - .gpio = { - .resetPin = D6, - .errorPin = D3, - .alertPin = D4, - .datareadyPin = D5, - }, - .log = { - .txPin = PA_11, - .rxPin = PA_12, - .baudRate = 115200, - .disableLogs = false, - }, -}; +static ADI_SENSE_CONNECTION connectionInfo = PLATFORM_CONNECTION_INFO; int main() {