From: Keith Packard Date: Tue, 13 May 2014 05:51:16 +0000 (-0700) Subject: altos: Report amount of program space available in the version command X-Git-Tag: 1.3.2.2~111 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=d1908101241b1002fbc582b0a2c27045065a6615 altos: Report amount of program space available in the version command Signed-off-by: Keith Packard --- diff --git a/src/kernel/ao_cmd.c b/src/kernel/ao_cmd.c index 4ebaa607..cd662314 100644 --- a/src/kernel/ao_cmd.c +++ b/src/kernel/ao_cmd.c @@ -279,6 +279,9 @@ version(void) #endif #if HAS_LOG "log-format %u\n" +#endif +#if defined(AO_BOOT_APPLICATION_BASE) && defined(AO_BOOT_APPLICATION_BOUND) + "program-space %u\n" #endif , ao_manufacturer , ao_product @@ -288,6 +291,9 @@ version(void) #endif #if HAS_LOG , ao_log_format +#endif +#if defined(AO_BOOT_APPLICATION_BASE) && defined(AO_BOOT_APPLICATION_BOUND) + , (uint32_t) AO_BOOT_APPLICATION_BOUND - (uint32_t) AO_BOOT_APPLICATION_BASE #endif ); printf("software-version %s\n", ao_version);