diff options
author | Stephane D'Alu <sdalu@sdalu.com> | 2016-06-29 21:33:29 +0200 |
---|---|---|
committer | Stephane D'Alu <sdalu@sdalu.com> | 2016-06-29 21:33:29 +0200 |
commit | 01874bedf49fc4fc1baf74871b653b5740912af5 (patch) | |
tree | eb28a081cd20d68bb30d9b6c878dd9db9f973d18 /os/hal | |
parent | e1e600b5ada75fe1bd77e13cb799433898cb848a (diff) | |
download | ChibiOS-Contrib-01874bedf49fc4fc1baf74871b653b5740912af5.tar.gz ChibiOS-Contrib-01874bedf49fc4fc1baf74871b653b5740912af5.tar.bz2 ChibiOS-Contrib-01874bedf49fc4fc1baf74871b653b5740912af5.zip |
changed counter type to int32_t
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/ports/NRF51/NRF51822/hal_qei_lld.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/ports/NRF51/NRF51822/hal_qei_lld.h b/os/hal/ports/NRF51/NRF51822/hal_qei_lld.h index aa3d1e8..aba7b59 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_qei_lld.h +++ b/os/hal/ports/NRF51/NRF51822/hal_qei_lld.h @@ -38,8 +38,8 @@ #define QEI_LED_POLARITY_LOW 0
#define QEI_LED_POLARITY_HIGH 1
-#define QEI_COUNT_MIN 0
-#define QEI_COUNT_MAX 65535
+#define QEI_COUNT_MIN (-2147483648)
+#define QEI_COUNT_MAX (2147483647)
/*===========================================================================*/
@@ -67,7 +67,7 @@ * @note The default is @p FALSE.
*/
#if !defined(NRF51_QEI_USE_ACC_OVERFLOW_CB) || defined(__DOXYGEN__)
-#define NRF51_QEI_USE_ACC_OVERFLOW_CB FALSE
+#define NRF51_QEI_USE_ACC_OVERFLOW_CB FALSE
#endif
/**
@@ -164,7 +164,7 @@ typedef enum { /**
* @brief QEI counter type.
*/
-typedef uint16_t qeicnt_t;
+typedef int32_t qeicnt_t;
/**
* @brief QEI delta type.
|