Timer mode overflow (fix #5927)

This commit is contained in:
Kilrah
2018-06-16 11:44:34 +02:00
parent bd1c9274b3
commit a0c2f0bf19
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -29,10 +29,12 @@
#if defined(CPUARM)
typedef int32_t tmrval_t;
typedef uint32_t tmrstart_t;
typedef int16_t tmrmode_t;
#define TIMER_MAX (0xffffff/2)
#else
typedef int16_t tmrval_t;
typedef uint16_t tmrstart_t;
typedef int8_t tmrmode_t;
#define TIMER_MAX (0xffff/2)
#endif