Vybhav Kadaba / Mbed OS EV-PRO-MW1001_Development_v11775

Files at this revision

API Documentation at this revision

Comitter:
Vkadaba
Date:
Fri Mar 06 05:32:12 2020 +0000
Parent:
56:38b36e947602
Child:
58:aa9cd5072f66
Commit message:
SUpporting the latest (v1.14.66) device FW

Changed in this revision

common/platform.h Show annotated file Show diff for this revision Revisions of this file
inc/mbedVersion.h Show annotated file Show diff for this revision Revisions of this file
mbed_release.txt Show annotated file Show diff for this revision Revisions of this file
src/admw_1001.c Show annotated file Show diff for this revision Revisions of this file
src/mbed/admw_spi.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/common/platform.h	Mon Feb 24 08:49:25 2020 +0000
+++ b/common/platform.h	Fri Mar 06 05:32:12 2020 +0000
@@ -83,7 +83,7 @@
             .sckPin     = PLATFORM_SPI_SCK,         \
             .csPin      = PLATFORM_SPI_CS,          \
             .wakeupPin  = PLATFORM_SPI_WAKEUP,       \
-            .maxSpeedHz = 2000000,                  \
+            .maxSpeedHz = 1000000,                  \
         },                                          \
         .gpio = {                                   \
             .resetPin     = PLATFORM_GPIO_RESET,    \
--- a/inc/mbedVersion.h	Mon Feb 24 08:49:25 2020 +0000
+++ b/inc/mbedVersion.h	Fri Mar 06 05:32:12 2020 +0000
@@ -23,7 +23,7 @@
  */
 #define MBED_HOST_MAJOR 0x01
 #define MBED_HOST_MINOR 0x02
-#define MBED_HOST_BUILD 0x0002
+#define MBED_HOST_BUILD 0x0003
 
 
 #endif
--- a/mbed_release.txt	Mon Feb 24 08:49:25 2020 +0000
+++ b/mbed_release.txt	Fri Mar 06 05:32:12 2020 +0000
@@ -5,7 +5,12 @@
 ================================================================================
 
 ================================================================================
-v01.02.0002 (18 February 2020)
+v01.02.0003 (6 March 2020)
+--------------------------------------------------------------------------------
+- SPI malfunctions after hibernation
+- SPI frequency set to 1MHz
+================================================================================
+v01.02.0002 (25 February 2020)
 --------------------------------------------------------------------------------
 - Added support to load Look up table 
 - Printing correct Raw values from the sensor
--- a/src/admw_1001.c	Mon Feb 24 08:49:25 2020 +0000
+++ b/src/admw_1001.c	Fri Mar 06 05:32:12 2020 +0000
@@ -903,7 +903,7 @@
     ADMW_CORE_Mode_t modeReg;
     READ_REG_U8(hDevice, modeReg.VALUE8, CORE_MODE);
 
-    if (eMeasurementMode == (modeReg.Conversion_Mode == CORE_MODE_SINGLECYCLE))
+    if (modeReg.Conversion_Mode == CORE_MODE_SINGLECYCLE)
         *peOperatingMode = ADMW1001_OPERATING_MODE_SINGLECYCLE;
     else
         *peOperatingMode = ADMW1001_OPERATING_MODE_CONTINUOUS;
--- a/src/mbed/admw_spi.cpp	Mon Feb 24 08:49:25 2020 +0000
+++ b/src/mbed/admw_spi.cpp	Fri Mar 06 05:32:12 2020 +0000
@@ -108,7 +108,6 @@
     int rc = 0;
    
     *(pCtx->_wakeup) = 1;
-     wait_ms(0.03);
     
     *(pCtx->_cs) = 0;
     
@@ -149,7 +148,6 @@
     SpiContext_t *pCtx = (SpiContext_t*)hDevice;
 
     *(pCtx->_wakeup) = 1;
-     wait_ms(0.03);    
     *(pCtx->_cs) = 0;
     
     rc  = pCtx->_spi->write((char*)(pTxData), pTxData ? nLength : 0,