mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
HAL_ChibiOS: use a 16 bit sysinterval_t on 16 bit timers
prevent mixed size subtraction errors
This commit is contained in:
1 parent
5684ca13fa
commit
f1ea4f5d01
2 files changed
+2
-1
No files matched your search
@@ -33,6 +33,7 @@ static_assert(sizeof(systime_t) == 2, "expected 16 bit systime_t");
|
||||
#elif CH_CFG_ST_RESOLUTION == 32
|
||||
static_assert(sizeof(systime_t) == 4, "expected 32 bit systime_t");
|
||||
#endif
|
||||
static_assert(sizeof(systime_t) == sizeof(sysinterval_t), "expected systime_t same size as sysinterval_t");
|
||||
|
||||
#if defined(HAL_EXPECTED_SYSCLOCK)
|
||||
#ifdef STM32_SYS_CK
|
||||
|
||||
Reference in new issue
Block a user