Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
ddb033aa
Commit
ddb033aa
authored
8 years ago
by
David Sidrane
Committed by
Lorenz Meier
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Temp fix - Needs to move to micro hal
parent
dcc2d1c3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/platforms/nuttx/px4_layer/px4_nuttx_tasks.c
+8
-5
8 additions, 5 deletions
src/platforms/nuttx/px4_layer/px4_nuttx_tasks.c
with
8 additions
and
5 deletions
src/platforms/nuttx/px4_layer/px4_nuttx_tasks.c
+
8
−
5
View file @
ddb033aa
...
...
@@ -51,8 +51,12 @@
#include
<sys/stat.h>
#include
<sys/types.h>
#ifndef CONFIG_ARCH_BOARD_SIM
#include
<stm32_pwr.h>
#ifdef CONFIG_ARCH_BOARD_SIM
#define stm32_pwr_enablebkp(onoff)
#else
# if defined(CONFIG_ARCH_CHIP_STM32) || defined(CONFIG_ARCH_CHIP_STM32F7)
# include <stm32_pwr.h>
# endif
#endif
#include
<systemlib/systemlib.h>
...
...
@@ -64,12 +68,11 @@ void
px4_systemreset
(
bool
to_bootloader
)
{
if
(
to_bootloader
)
{
#ifndef CONFIG_ARCH_BOARD_SIM
stm32_pwr_enablebkp
();
#endif
stm32_pwr_enablebkp
(
true
);
/* XXX wow, this is evil - write a magic number into backup register zero */
*
(
uint32_t
*
)
0x40002850
=
0xb007b007
;
stm32_pwr_enablebkp
(
false
);
}
up_systemreset
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment