Avoid ram from 0xfda2 through feff, its funky
authorKeith Packard <keithp@keithp.com>
Fri, 24 Apr 2009 07:15:09 +0000 (00:15 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 24 Apr 2009 07:15:09 +0000 (00:15 -0700)
Makefile
ao.h

index 7bf2bee..2a6b7ad 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ CC=sdcc
 CFLAGS=--model-small --debug --opt-code-speed 
 
 LDFLAGS=--out-fmt-ihx --code-loc 0x0000 --code-size 0x8000 \
-       --xram-loc 0xf000 --xram-size 0xf00 --iram-size 0xff
+       --xram-loc 0xf000 --xram-size 0xda2 --iram-size 0xff
 
 INC = \
        ao.h \
diff --git a/ao.h b/ao.h
index 02810d0..b10f1b3 100644 (file)
--- a/ao.h
+++ b/ao.h
@@ -122,7 +122,7 @@ ao_timer_init(void);
  * ao_adc.c
  */
 
-#define AO_ADC_RING    128
+#define AO_ADC_RING    64
 
 /*
  * One set of samples read from the A/D converter