From 01874bedf49fc4fc1baf74871b653b5740912af5 Mon Sep 17 00:00:00 2001 From: Stephane D'Alu Date: Wed, 29 Jun 2016 21:33:29 +0200 Subject: changed counter type to int32_t --- os/hal/ports/NRF51/NRF51822/hal_qei_lld.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'os/hal/ports') 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. -- cgit v1.2.3