summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-26 15:02:43 -0700
committerKeith Packard <keithp@keithp.com>2011-08-26 20:56:25 -0700
commitc32893ce79835a8f861d6ef414644c2ff9769ff6 (patch)
treea6fd36123685f6880d35612782ddff2ed2d9b18c /src/util
parent8125acc030574afed6f23aa8aa302d9c768bb04e (diff)
altos: Integrate telescience support
Adds a few drivers including an LCD driver Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/check-avr-mem9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/check-avr-mem b/src/util/check-avr-mem
new file mode 100644
index 00000000..c73edbd1
--- /dev/null
+++ b/src/util/check-avr-mem
@@ -0,0 +1,9 @@
+#!/bin/sh
+nm "$@" |
+grep ' N _end' |
+awk '{ iram = strtonum("0x" $1) % 0x10000;
+if ( iram > 0xaff) {
+ printf ("%d bytes of ram more than %d available\n", iram, 0xaff);
+ exit(1);
+} else
+ exit(0); }'