projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Report amount of program space available in the version command
[fw/altos]
/
src
/
kernel
/
ao_cmd.c
diff --git
a/src/kernel/ao_cmd.c
b/src/kernel/ao_cmd.c
index 4ebaa6079368ec80164a8176d8d010914552cc9d..cd662314177c80a61520040c5932481dafc67bad 100644
(file)
--- 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 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
#endif
, ao_manufacturer
, ao_product
@@
-288,6
+291,9
@@
version(void)
#endif
#if HAS_LOG
, ao_log_format
#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);
#endif
);
printf("software-version %s\n", ao_version);