diff options
author | Keith Packard <keithp@keithp.com> | 2011-05-18 00:12:40 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-05-18 00:12:40 -0700 |
commit | e7e2fdf45dfbf6393ee0a0ec22e1e5ea49d6cfd5 (patch) | |
tree | ea31fc296501fc096a4f3a7544d918ec123724aa /src-avr/ao_demo.c | |
parent | ce78906727aa59fc2b91f0fde4c7186b037359ff (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_demo.c')
0 files changed, 0 insertions, 0 deletions