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 7bf2bee5d0d6ad71647d5c167d1da712efd26e40..2a6b7adc4f217b4dba59d3b4e2b416de154281dc 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 02810d05baefa61683254fdbb53149e128428603..b10f1b34c1d2502cdd60c0252da5bfcc00447830 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