Neri Tiziano / X_NUCLEO_IHM03A1_for

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Revision:
1:8ce2a5d6fbf8
Parent:
0:00a3c3f5a8f0
Child:
4:f48e8d87553e
diff -r 00a3c3f5a8f0 -r 8ce2a5d6fbf8 Components/powerstep01/powerstep01.h
--- a/Components/powerstep01/powerstep01.h	Tue Apr 05 15:18:56 2016 +0000
+++ b/Components/powerstep01/powerstep01.h	Thu Apr 07 16:11:47 2016 +0000
@@ -62,8 +62,16 @@
 /** @defgroup Powerstep01_Exported_Defines Powerstep01_Exported_Defines
  * @{
  */
+/// Current FW major version
+#define POWERSTEP01_FW_MAJOR_VERSION (uint8_t)(1)
+/// Current FW minor version
+#define POWERSTEP01_FW_MINOR_VERSION (uint8_t)(2)
+/// Current FW patch version
+#define POWERSTEP01_FW_PATCH_VERSION (uint8_t)(0)
 /// Current FW version
-#define POWERSTEP01_FW_VERSION (2)
+#define POWERSTEP01_FW_VERSION (uint32_t)((POWERSTEP01_FW_MAJOR_VERSION<<16)|\
+                                          (POWERSTEP01_FW_MINOR_VERSION<<8)|\
+                                          (POWERSTEP01_FW_PATCH_VERSION))
 
 /// Powerstep01 max number of bytes of command & arguments to set a parameter
 #define POWERSTEP01_CMD_ARG_MAX_NB_BYTES              (4)
@@ -116,7 +124,7 @@
 #define POWERSTEP01_MIN_POSITION (int32_t)(0xFFE00000)
     
 /// powerSTEP01 error base number
-#define POWERSTEP01_ERROR_BASE              (0x7000)
+#define POWERSTEP01_ERROR_BASE              (0xB000)
 
 /// powerSTEP01 acceleration and deceleration max value
 #define POWERSTEP01_ACC_DEC_MAX_VALUE       (float)(59590)