summaryrefslogtreecommitdiff
path: root/src-avr/ao_led.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-05-18 00:12:40 -0700
committerKeith Packard <keithp@keithp.com>2011-05-18 00:12:40 -0700
commite7e2fdf45dfbf6393ee0a0ec22e1e5ea49d6cfd5 (patch)
treeea31fc296501fc096a4f3a7544d918ec123724aa /src-avr/ao_led.c
parentce78906727aa59fc2b91f0fde4c7186b037359ff (diff)
src-avr: Suspend interrupts while switching stacks
Setting the stack pointer takes two instructions, so make sure we don't get an interrupt in the middle of it. Let the restoration of SREG set the interrupt flag as appropriate. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src-avr/ao_led.c')
0 files changed, 0 insertions, 0 deletions