Revision 57a5d1df

View differences:

kernel/ChibiOS
1
Subproject commit 14eea36396e50de3f4f54a53862b130162449821
1
Subproject commit 065a3182147545188d83a71c0881e2d7bac58de2
kernel/patches/chTimeAddX-overflow-fix.patch
6 6
                                    sysinterval_t interval) {
7 7
 
8 8
-#if CH_CFG_ST_RESOLUTION != CH_CFG_INTERVALS_SIZE
9
-  chDbgCheck(interval <= (sysinterval_t)((systime_t)-1));
9
-  chDbgCheck(interval <= (sysinterval_t)TIME_MAX_SYSTIME);
10 10
+#if CH_CFG_ST_RESOLUTION < CH_CFG_INTERVALS_SIZE
11 11
+  return  systime + (systime_t)(interval % ((sysinterval_t)1 << CH_CFG_ST_RESOLUTION));
12 12
+#else

Also available in: Unified diff