mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 00:23:33 +08:00
Use micro hal fir px4_savepanic
To keep board_crashdump.c as common code we create a wrapper around the arch depandant call to stm32_bbsram_savepanic.
This commit is contained in:
committed by
Daniel Agar
parent
6669aa058d
commit
b2b6509ee0
@@ -144,7 +144,7 @@ __EXPORT void board_crashdump(uintptr_t currentsp, FAR void *tcb, FAR const uint
|
||||
pdump->info.flags |= eInvalidUserStackPtr;
|
||||
}
|
||||
|
||||
int rv = stm32_bbsram_savepanic(HARDFAULT_FILENO, (uint8_t *)pdump, sizeof(fullcontext_s));
|
||||
int rv = px4_savepanic(HARDFAULT_FILENO, (uint8_t *)pdump, sizeof(fullcontext_s));
|
||||
|
||||
/* Test if memory got wiped because of using _sdata */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user