Inversion between TIMER_MIN and TIMER_MAX!!!
This commit is contained in:
+3
-3
@@ -45,14 +45,14 @@
|
|||||||
#if defined(CPUARM)
|
#if defined(CPUARM)
|
||||||
typedef int32_t tmrval_t;
|
typedef int32_t tmrval_t;
|
||||||
typedef uint32_t tmrstart_t;
|
typedef uint32_t tmrstart_t;
|
||||||
#define TIMER_MIN (-0xffffff/2)
|
#define TIMER_MAX (0xffffff/2)
|
||||||
#else
|
#else
|
||||||
typedef int16_t tmrval_t;
|
typedef int16_t tmrval_t;
|
||||||
typedef uint16_t tmrstart_t;
|
typedef uint16_t tmrstart_t;
|
||||||
#define TIMER_MIN (32767)
|
#define TIMER_MAX (0xffff/2)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TIMER_MAX (-TIMER_MIN-1)
|
#define TIMER_MIN (-TIMER_MAX-1)
|
||||||
|
|
||||||
struct TimerState {
|
struct TimerState {
|
||||||
uint16_t cnt;
|
uint16_t cnt;
|
||||||
|
|||||||
Reference in New Issue
Block a user