diff options
| author | Keith Packard <keithp@keithp.com> | 2014-05-12 22:51:16 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-05-12 22:51:16 -0700 | 
| commit | d1908101241b1002fbc582b0a2c27045065a6615 (patch) | |
| tree | 7bc01ec55b240c8d72c92951b5331bfdeab3fe1f /src | |
| parent | 3af4e824938fe07fe75c6d24d9906aebfbe578f3 (diff) | |
altos: Report amount of program space available in the version command
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/kernel/ao_cmd.c | 6 | 
1 files changed, 6 insertions, 0 deletions
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 @@ -280,6 +280,9 @@ version(void)  #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  	       , ao_serial_number @@ -289,6 +292,9 @@ version(void)  #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);  }  | 
