mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2025-12-10 00:28:42 -06:00
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.
17 lines
274 B
C++
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;
|
|
}
|