Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cortex-m-rtfm-klee
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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KLEE
cortex-m-rtfm-klee
Commits
e18eb961
Commit
e18eb961
authored
8 years ago
by
Jorge Aparicio
Browse files
Options
Downloads
Patches
Plain Diff
fix unused variable warning around interrupt::free
parent
17b252a8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
macros/src/trans.rs
+3
-3
3 additions, 3 deletions
macros/src/trans.rs
with
3 additions
and
3 deletions
macros/src/trans.rs
+
3
−
3
View file @
e18eb961
...
@@ -75,7 +75,7 @@ fn init(app: &App, main: &mut Vec<Tokens>, root: &mut Vec<Tokens>) {
...
@@ -75,7 +75,7 @@ fn init(app: &App, main: &mut Vec<Tokens>, root: &mut Vec<Tokens>) {
Kind
::
Exception
=>
{
Kind
::
Exception
=>
{
if
exceptions
.is_empty
()
{
if
exceptions
.is_empty
()
{
exceptions
.push
(
quote!
{
exceptions
.push
(
quote!
{
let
scb
=
#
device
::
SCB
.borrow
(
cs
);
let
scb
=
#
device
::
SCB
.borrow
(
_
cs
);
});
});
}
}
...
@@ -89,7 +89,7 @@ fn init(app: &App, main: &mut Vec<Tokens>, root: &mut Vec<Tokens>) {
...
@@ -89,7 +89,7 @@ fn init(app: &App, main: &mut Vec<Tokens>, root: &mut Vec<Tokens>) {
Kind
::
Interrupt
{
enabled
}
=>
{
Kind
::
Interrupt
{
enabled
}
=>
{
if
interrupts
.is_empty
()
{
if
interrupts
.is_empty
()
{
interrupts
.push
(
quote!
{
interrupts
.push
(
quote!
{
let
nvic
=
#
device
::
NVIC
.borrow
(
cs
);
let
nvic
=
#
device
::
NVIC
.borrow
(
_
cs
);
});
});
}
}
...
@@ -118,7 +118,7 @@ fn init(app: &App, main: &mut Vec<Tokens>, root: &mut Vec<Tokens>) {
...
@@ -118,7 +118,7 @@ fn init(app: &App, main: &mut Vec<Tokens>, root: &mut Vec<Tokens>) {
// type check
// type check
let
init
:
fn
(
init
::
Peripherals
,
init
::
Resources
)
=
#
init
;
let
init
:
fn
(
init
::
Peripherals
,
init
::
Resources
)
=
#
init
;
#
krate
::
atomic
(|
cs
|
unsafe
{
#
krate
::
atomic
(|
_
cs
|
unsafe
{
init
(
init
::
Peripherals
::
all
(),
init
::
Resources
::
new
());
init
(
init
::
Peripherals
::
all
(),
init
::
Resources
::
new
());
#
(
#
exceptions
)
*
#
(
#
exceptions
)
*
...
...
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