Skip to content
Snippets Groups Projects
Commit 6ccfc6dd authored by schneider's avatar schneider
Browse files

Merge branch 'schneider/mp-primask' into 'master'

mp: Correctly mask interrupts

See merge request !498
parents d14444b1 00260de8
No related branches found
No related tags found
1 merge request!498mp: Correctly mask interrupts
Pipeline #5340 passed
...@@ -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