8000 interrupts.h in tests/host/common is empty by dok-net · Pull Request #6217 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

interrupts.h in tests/host/common is empty #6217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 22, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fight "error: unused variable"
  • Loading branch information
dok-net committed Jun 21, 2019
commit 37040a0fbcc1287735eba6c39c72de4e98f0da93
13 changes: 12 additions & 1 deletion tests/host/common/interrupts.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,20 @@

class InterruptLock {
public:
InterruptLock() {
_state = 0x00;
}

~InterruptLock() {
_state = 0x0f;
}

uint32_t savedInterruptLevel() const {
return 0x0f;
return _state & 0x0f;
}

protected:
uint32_t _state;
};

#define AutoInterruptLock(intrLevel) \
Expand Down
0