diff options
author | Keith Packard <keithp@keithp.com> | 2009-10-16 12:56:45 +0900 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-10-16 12:56:45 +0900 |
commit | d709a0688eff84e25e24d755850ef045d6b0c3de (patch) | |
tree | e5aa394224f57a3c324a6360419b420421680003 /src/ao_adc.c | |
parent | 69b6f6bb465163cf767bb68e0e4a716d8ad2b39c (diff) |
Save some DSEG space by marking cmd functions __reentrant
__reentrant causes the compiler to place args and locals on the stack
instead of in the data segment.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_adc.c')
-rw-r--r-- | src/ao_adc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ao_adc.c b/src/ao_adc.c index 26209dcf..d9672671 100644 --- a/src/ao_adc.c +++ b/src/ao_adc.c @@ -61,9 +61,9 @@ ao_adc_isr(void) interrupt 1 } static void -ao_adc_dump(void) +ao_adc_dump(void) __reentrant { - __xdata struct ao_adc packet; + static __xdata struct ao_adc packet; ao_adc_get(&packet); printf("tick: %5u accel: %4d pres: %4d temp: %4d batt: %4d drogue: %4d main: %4d\n", packet.tick, packet.accel >> 4, packet.pres >> 4, packet.temp >> 4, |