ardupilot/libraries/AP_HAL/system.cpp
bugobliterator 679fa817e6 AP_HAL: move methods for stack overflow and memguard to AP_HAL/Util
also add reboot on memory errors for iomcu
2025-02-27 20:11:40 +11:00

26 lines
452 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;
}
void WEAK AP_HAL::dump_stack_trace()
{
// stack dump not available on this platform
}
void WEAK AP_HAL::dump_core_file()
{
// core dump not available on this platform
}