|
|
|
@ -31,16 +31,18 @@ typedef enum {
|
|
|
|
|
prescalerOutOfRange /*!< Set prescaler value exeeds the Register's **HARDWARE** size */
|
|
|
|
|
} timerError_t;
|
|
|
|
|
|
|
|
|
|
/*! Enum of possible counting modes */
|
|
|
|
|
typedef enum {
|
|
|
|
|
upCounting,
|
|
|
|
|
downCounting
|
|
|
|
|
upCounting, /*!< Counter is in upcounting mode */
|
|
|
|
|
downCounting /*!< Counter is in downcounting mode */
|
|
|
|
|
} timerCountDirection_t;
|
|
|
|
|
|
|
|
|
|
/*! Enum of possible timer modes */
|
|
|
|
|
typedef enum {
|
|
|
|
|
counter,
|
|
|
|
|
inputCapture,
|
|
|
|
|
outputCompare,
|
|
|
|
|
onePulse
|
|
|
|
|
counter, /*!< Timer is in counting mode */
|
|
|
|
|
inputCapture, /*!< */
|
|
|
|
|
outputCompare, /*!< */
|
|
|
|
|
onePulse /*!< */
|
|
|
|
|
} timerMode_t;
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|