mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
nlgpio16: C++11 incompatibility fixes
Signed-off-by: Eugene Bolshakov <pub@relvarsoft.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
ec75790516
commit
4a1b4f1dd4
@ -38,6 +38,12 @@
|
|||||||
|
|
||||||
#define NLGPIO16_DEFAULT_UART_DEV "/dev/ttyACM0"
|
#define NLGPIO16_DEFAULT_UART_DEV "/dev/ttyACM0"
|
||||||
|
|
||||||
|
// ADC analog ref voltage is 3.3v
|
||||||
|
#define ADC_AREF 3.3
|
||||||
|
|
||||||
|
// 10-bit precision (0-1023)
|
||||||
|
#define ADC_PRECISION 10
|
||||||
|
|
||||||
namespace upm {
|
namespace upm {
|
||||||
/**
|
/**
|
||||||
* @brief NLGPIO16 module
|
* @brief NLGPIO16 module
|
||||||
@ -82,11 +88,6 @@ namespace upm {
|
|||||||
class NLGPIO16 {
|
class NLGPIO16 {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// ADC analog ref voltage is 3.3v
|
|
||||||
static const float ADC_AREF = 3.3;
|
|
||||||
// 10-bit precision (0-1023)
|
|
||||||
static const int ADC_PRECISION = 10;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NLGPIO16 object constructor
|
* NLGPIO16 object constructor
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user