Skip to content

Commit

Permalink
Disable interrupts while showing pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
csonsino committed Sep 9, 2019
1 parent 488347a commit 1642d7f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apollo3.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ void apollo3Show(
bitMask = 0x80;

#if defined(PIN_METHOD_FAST_GPIO)

// disable interrupts
am_hal_interrupt_master_disable();

#ifdef NEO_KHZ400 // 800 KHz check needed only if 400 KHz support enabled
if(is800KHz) {
#endif
Expand Down Expand Up @@ -118,6 +122,10 @@ void apollo3Show(
}
}
}

// re-enable interrupts
am_hal_interrupt_master_enable();

#endif // NEO_KHZ400
#endif // PIN_METHOD_FAST_GPIO
}
Expand Down

0 comments on commit 1642d7f

Please sign in to comment.