changed counter type to int32_t
This commit is contained in:
parent
e1e600b5ad
commit
01874bedf4
|
@ -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)
|
||||
|
||||
|
||||
/*===========================================================================*/
|
||||
|
@ -164,7 +164,7 @@ typedef enum {
|
|||
/**
|
||||
* @brief QEI counter type.
|
||||
*/
|
||||
typedef uint16_t qeicnt_t;
|
||||
typedef int32_t qeicnt_t;
|
||||
|
||||
/**
|
||||
* @brief QEI delta type.
|
||||
|
|
Loading…
Reference in New Issue