Thomas Watson b2b1d9e1bd AP_HAL: un-weaken and un-define dump functions
Weak symbols have problems on cygwin. These are only defined and used in
SITL so no point having an empty definition here, which would cause a
redefinition error if not weak.

Keeping the declaration in AP_HAL itself is not the best, but it works
and avoids significant surgery to AP_HAL_SITL to move their declarations
and usages into a better place.
2025-09-03 11:00:41 +01:00

17 lines
274 B
C++

#include "system.h"
#include "AP_HAL.h"
#include <AP_InternalError/AP_InternalError.h>
#include <stdio.h>
extern const AP_HAL::HAL& hal;
uint16_t WEAK AP_HAL::millis16()
{
return millis() & 0xFFFF;
}
uint16_t WEAK AP_HAL::micros16()
{
return micros() & 0xFFFF;
}