Skip to content
Snippets Groups Projects
Commit 00260de8 authored by schneider's avatar schneider
Browse files

mp: Correctly mask interrupts

parent d14444b1
Branches
No related tags found
No related merge requests found
...@@ -169,7 +169,7 @@ static int64_t systick_get_us() ...@@ -169,7 +169,7 @@ static int64_t systick_get_us()
* its value can jump to 0 before the interrupt is triggered. * its value can jump to 0 before the interrupt is triggered.
* Simply wait until it is not 0 and then read the count. */ * Simply wait until it is not 0 and then read the count. */
do { do {
__set_PRIMASK(0); __set_PRIMASK(1);
val = SysTick->VAL; val = SysTick->VAL;
count = systick_count; count = systick_count;
__set_PRIMASK(irqsaved); __set_PRIMASK(irqsaved);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment