Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
fwatch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
fwatch
Commits
e741c0c5
Commit
e741c0c5
authored
Aug 05, 2014
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common: function to reset MCU
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
49868f04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
freewatch_utils.c
sw/common/freewatch/freewatch_utils.c
+8
-0
freewatch_utils.h
sw/common/freewatch/freewatch_utils.h
+1
-1
No files found.
sw/common/freewatch/freewatch_utils.c
View file @
e741c0c5
...
...
@@ -28,6 +28,14 @@ void Delay(uint32_t dlyTicks)
while
((
msTicks
-
curTicks
)
<
dlyTicks
);
}
/**************************************************************************//**
* @brief Reset the MCU
*****************************************************************************/
void
ResetEFM32
(
void
)
{
SCB
->
AIRCR
=
0x05FA0004
;
}
/**************************************************************************//**
* @brief Main function
*****************************************************************************/
...
...
sw/common/freewatch/freewatch_utils.h
View file @
e741c0c5
...
...
@@ -3,5 +3,5 @@
extern
void
supercar_blink
(
int
delay
,
int
rep
);
extern
void
Delay
(
uint32_t
dlyTicks
);
extern
void
ResetEFM32
(
void
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment