AP_HAL: move dump_strack_trace into HAL

Use a weak definition to allow subclasses to override
This commit is contained in:
Peter Barker 2019-06-11 12:14:01 +10:00 committed by Peter Barker
parent cceab9c88f
commit c3a99c8eb0
2 changed files with 7 additions and 0 deletions

View File

@ -4,3 +4,8 @@ uint16_t WEAK AP_HAL::millis16()
{
return millis() & 0xFFFF;
}
void WEAK AP_HAL::dump_stack_trace()
{
// stack dump not available on this platform
}

View File

@ -18,4 +18,6 @@ uint16_t millis16();
uint64_t micros64();
uint64_t millis64();
void dump_stack_trace();
} // namespace AP_HAL