Browse Source

nlgpio16: C++11 incompatibility fixes

Signed-off-by: Eugene Bolshakov <pub@relvarsoft.com>

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Eugene Bolshakov 9 years ago
parent
commit
4a1b4f1dd4
1 changed files with 6 additions and 5 deletions
  1. 6
    5
      src/nlgpio16/nlgpio16.h

+ 6
- 5
src/nlgpio16/nlgpio16.h View File

@@ -38,6 +38,12 @@
38 38
 
39 39
 #define NLGPIO16_DEFAULT_UART_DEV "/dev/ttyACM0"
40 40
 
41
+// ADC analog ref voltage is 3.3v
42
+#define ADC_AREF 3.3
43
+
44
+// 10-bit precision (0-1023)
45
+#define ADC_PRECISION 10
46
+
41 47
 namespace upm {
42 48
     /**
43 49
      * @brief NLGPIO16 module
@@ -82,11 +88,6 @@ namespace upm {
82 88
   class NLGPIO16 {
83 89
   public:
84 90
 
85
-    // ADC analog ref voltage is 3.3v
86
-    static const float ADC_AREF = 3.3;
87
-    // 10-bit precision (0-1023)
88
-    static const int ADC_PRECISION = 10;
89
-
90 91
     /**
91 92
      * NLGPIO16 object constructor
92 93
      *