mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
AP_HAL: move dump_strack_trace into HAL
Use a weak definition to allow subclasses to override
This commit is contained in:
parent
cceab9c88f
commit
c3a99c8eb0
@ -4,3 +4,8 @@ uint16_t WEAK AP_HAL::millis16()
|
|||||||
{
|
{
|
||||||
return millis() & 0xFFFF;
|
return millis() & 0xFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WEAK AP_HAL::dump_stack_trace()
|
||||||
|
{
|
||||||
|
// stack dump not available on this platform
|
||||||
|
}
|
||||||
|
@ -18,4 +18,6 @@ uint16_t millis16();
|
|||||||
uint64_t micros64();
|
uint64_t micros64();
|
||||||
uint64_t millis64();
|
uint64_t millis64();
|
||||||
|
|
||||||
|
void dump_stack_trace();
|
||||||
|
|
||||||
} // namespace AP_HAL
|
} // namespace AP_HAL
|
||||||
|
Loading…
Reference in New Issue
Block a user