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.
Diff: main.cpp
- Revision:
- 56:38b36e947602
- Parent:
- 55:215da406282b
- Child:
- 61:0f16a2e3b58b
diff -r 215da406282b -r 38b36e947602 main.cpp
--- a/main.cpp Mon Feb 24 07:04:35 2020 +0000
+++ b/main.cpp Mon Feb 24 08:49:25 2020 +0000
@@ -50,6 +50,7 @@
#include "admw1001/ADMW1001_REGISTERS.h"
#include "admw1001/admw1001_lut_data.h"
#include "admw1001/admw1001_host_comms.h"
+#include "mbedVersion.h"
extern ADMW_CONFIG thermocouple_typeK_cjc0_config;
extern ADMW_CONFIG thermocouple_typeT_cjc0_config;
@@ -64,7 +65,7 @@
extern ADMW_CONFIG measureware_config;
/* Change the following pointer to load or change the configurations */
-static ADMW_CONFIG *pSelectedConfig = &bridge_4w_load_cell_config;
+static ADMW_CONFIG *pSelectedConfig = &multichannel_continuous_config;
/* use the following to load LUT */
extern ADMW1001_LUT_DESCRIPTOR *lut_desc_list[];
@@ -76,13 +77,12 @@
int main()
{
-
ADMW_RESULT res;
ADMW_STATUS status;
ADMW_DEVICE_HANDLE hDevice;
ADMW_MEASUREMENT_MODE eMeasurementMode = ADMW_MEASUREMENT_MODE_NORMAL;
bool bDeviceReady;
- admw_readMbedVersion();
+
/*
* Open an ADMW1001 device instance.
*/
@@ -91,7 +91,7 @@
ADMW_LOG_ERROR("Failed to open device instance");
return res;
}
-
+ ADMW_LOG_INFO("Mbed Firmware version is %X.%X.%X",MBED_HOST_MAJOR,MBED_HOST_MINOR,MBED_HOST_BUILD);
/*
* Reset the given ADMW1001 device....
*/