Skip to content
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

Incorrect implementatios of portENABLE_INTERRUPTS. #13

Open
vmpru opened this issue Apr 16, 2020 · 0 comments
Open

Incorrect implementatios of portENABLE_INTERRUPTS. #13

vmpru opened this issue Apr 16, 2020 · 0 comments

Comments

@vmpru
Copy link

vmpru commented Apr 16, 2020

This port use incorrect implementatios of portENABLE_INTERRUPTS. Two consecutive calls of portENABLE_INTERRUPTS make interrupts disabled:

#define portENABLE_INTERRUPTS()		enh_alt_irq_enable_all()
void enh_alt_irq_enable_all()
{
	alt_irq_context restore = lastContext;
	lastContext = 0;
	alt_irq_enable_all(restore);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant