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.
Fork of AdiSense1000 by
Diff: main.cpp
- Branch:
- v2.0
- Revision:
- 31:de49744b57a6
- Parent:
- 30:119ff4f3aef6
- Child:
- 32:119f86d3d9ed
--- 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() {