summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-18 22:57:22 -0800
committerKeith Packard <keithp@keithp.com>2016-11-18 22:57:22 -0800
commit8b1d8df85170e334f4f7691017629028fc88231a (patch)
tree516333995a8848a154bcb1f2f394614dbde871b5
parent3d16073b82cd966de087fdca8f35058b1ebdc6b6 (diff)
altos/lisp: Include memory stats for test program
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/test/ao_lisp_os.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ao_lisp_os.h b/src/test/ao_lisp_os.h
index dedcca28..9ff2e1fe 100644
--- a/src/test/ao_lisp_os.h
+++ b/src/test/ao_lisp_os.h
@@ -24,6 +24,7 @@
#define AO_LISP_POOL_TOTAL 3072
#define AO_LISP_SAVE 1
+#define DBG_MEM_STATS 1
extern int ao_lisp_getc(void);
@@ -47,6 +48,8 @@ ao_lisp_os_led(int led)
static inline void
ao_lisp_os_delay(int delay)
{
+ if (!delay)
+ return;
struct timespec ts = {
.tv_sec = delay / 1000,
.tv_nsec = (delay % 1000) * 1000000,