Inversion between TIMER_MIN and TIMER_MAX!!!

This commit is contained in:
Bertrand Songis
2015-09-08 20:34:10 +02:00
parent 2a49e98a80
commit 746dbe22b8
+3 -3
View File
@@ -45,14 +45,14 @@
#if defined(CPUARM)
typedef int32_t tmrval_t;
typedef uint32_t tmrstart_t;
#define TIMER_MIN (-0xffffff/2)
#define TIMER_MAX (0xffffff/2)
#else
typedef int16_t tmrval_t;
typedef uint16_t tmrstart_t;
#define TIMER_MIN (32767)
#define TIMER_MAX (0xffff/2)
#endif
#define TIMER_MAX (-TIMER_MIN-1)
#define TIMER_MIN (-TIMER_MAX-1)
struct TimerState {
uint16_t cnt;