mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 12:53:34 +08:00
Cleanup of module building.
This commit is contained in:
@@ -50,7 +50,9 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifndef CONFIG_ARCH_BOARD_SIM
|
||||
#include <stm32_pwr.h>
|
||||
#endif
|
||||
|
||||
#include <systemlib/systemlib.h>
|
||||
|
||||
@@ -61,7 +63,9 @@ void
|
||||
px4_systemreset(bool to_bootloader)
|
||||
{
|
||||
if (to_bootloader) {
|
||||
#ifndef CONFIG_ARCH_BOARD_SIM
|
||||
stm32_pwr_enablebkp();
|
||||
#endif
|
||||
|
||||
/* XXX wow, this is evil - write a magic number into backup register zero */
|
||||
*(uint32_t *)0x40002850 = 0xb007b007;
|
||||
|
||||
Reference in New Issue
Block a user