aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-07-08 09:46:29 +1000
committerinmarket <andrewh@inmarket.com.au>2018-07-08 09:46:29 +1000
commit63d69559929b04332b82b0f34a580097a985a884 (patch)
tree578c91dcdad45f79592e24dc40e5004ccaf76ea6
parent853863254f1636ac7fa1fc03a26c8b3cb5c64718 (diff)
downloaduGFX-63d69559929b04332b82b0f34a580097a985a884.tar.gz
uGFX-63d69559929b04332b82b0f34a580097a985a884.tar.bz2
uGFX-63d69559929b04332b82b0f34a580097a985a884.zip
Another ChibiOS V5 fix
-rw-r--r--src/gos/gos_chibios.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gos/gos_chibios.h b/src/gos/gos_chibios.h
index d97d1e9f..e1c5839f 100644
--- a/src/gos/gos_chibios.h
+++ b/src/gos/gos_chibios.h
@@ -30,7 +30,11 @@
* are already defined by ChibiOS
*/
-typedef systime_t delaytime_t;
+#if CH_KERNEL_MAJOR <= 4
+ typedef systime_t delaytime_t;
+#else
+ typedef sysinterval_t delaytime_t;
+#endif
typedef systime_t systemticks_t;
typedef cnt_t semcount_t;
typedef msg_t threadreturn_t;