aboutsummaryrefslogtreecommitdiff
path: root/simplemotion.h
diff options
context:
space:
mode:
authorTero Kontkanen <tero.kontkanen@granitedevices.fi>2017-04-07 15:33:40 +0300
committerTero Kontkanen <tero.kontkanen@granitedevices.fi>2017-04-07 15:33:40 +0300
commit7dc56301dd8388cdf60e0c3270ec99b403c6063f (patch)
tree2598ac6252b251d7cbc0c934809816a7ea221189 /simplemotion.h
parent52bf3a6b791a381cf08a3ac167fac7375459aab9 (diff)
downloadSimpleMotionV2-feature/device-deployment-library.tar.gz
SimpleMotionV2-feature/device-deployment-library.zip
Switch using stdint.h typesfeature/device-deployment-library
Diffstat (limited to 'simplemotion.h')
-rw-r--r--simplemotion.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/simplemotion.h b/simplemotion.h
index 725d3dc..dcf499d 100644
--- a/simplemotion.h
+++ b/simplemotion.h
@@ -17,6 +17,7 @@
#endif
#include <stdio.h>
+#include <stdint.h>
#include "simplemotion_defs.h"
@@ -38,13 +39,13 @@ extern "C"{
///////////////////////////////////////////////////////////////////////////////////////
//declare SM lib types
typedef long smbus;
-typedef unsigned long smuint32;
-typedef unsigned short smuint16;
-typedef unsigned char smuint8;
-typedef long smint32;
-typedef short smint16;
-typedef char smint8;
-typedef char smbool;
+typedef uint32_t smuint32;
+typedef uint16_t smuint16;
+typedef uint8_t smuint8;
+typedef int32_t smint32;
+typedef int16_t smint16;
+typedef int8_t smint8;
+typedef int8_t smbool;
#define smtrue 1
#define smfalse 0
typedef int SM_STATUS;