Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
0d31bbc7
Commit
0d31bbc7
authored
May 23, 2015
by
Damien George
Browse files
stmhal: Make pendsv variable non-static so gcc-5 doesn't opt it away.
parent
ed56b0ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/pendsv.c
View file @
0d31bbc7
...
...
@@ -31,10 +31,12 @@
#include "py/runtime.h"
#include "pendsv.h"
// Note: this can contain point to the heap but is not traced by GC.
// This is okay because we only ever set it to mp_const_vcp_interrupt
// which is in the root-pointer set.
STATIC
void
*
pendsv_object
;
// This variable is used to save the exception object between a ctrl-C and the
// PENDSV call that actually raises the exception. It must be non-static
// otherwise gcc-5 optimises it away. It can point to the heap but is not
// traced by GC. This is okay because we only ever set it to
// mp_const_vcp_interrupt which is in the root-pointer set.
void
*
pendsv_object
;
void
pendsv_init
(
void
)
{
// set PendSV interrupt at lowest priority
...
...
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