mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
HAL_ChibiOS: added assert for systime_t size
This commit is contained in:
parent
ccc7968f91
commit
d4d44990e1
@ -26,6 +26,12 @@
|
|||||||
#include "hal.h"
|
#include "hal.h"
|
||||||
#include <hrt.h>
|
#include <hrt.h>
|
||||||
|
|
||||||
|
#if CH_CFG_ST_RESOLUTION == 16
|
||||||
|
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
|
||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user