projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Report total available log space in 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..5d8683e132da42ab3a3a3c35419bc456e1604106 100644
(file)
--- a/
src/kernel/ao_cmd.c
+++ b/
src/kernel/ao_cmd.c
@@
-23,7
+23,11
@@
__pdata uint32_t ao_cmd_lex_u32;
__pdata char ao_cmd_lex_c;
__pdata enum ao_cmd_status ao_cmd_status;
__pdata char ao_cmd_lex_c;
__pdata enum ao_cmd_status ao_cmd_status;
+#if AO_PYRO_NUM
+#define CMD_LEN 128
+#else
#define CMD_LEN 48
#define CMD_LEN 48
+#endif
static __xdata char cmd_line[CMD_LEN];
static __pdata uint8_t cmd_len;
static __xdata char cmd_line[CMD_LEN];
static __pdata uint8_t cmd_len;
@@
-279,6
+283,12
@@
version(void)
#endif
#if HAS_LOG
"log-format %u\n"
#endif
#if HAS_LOG
"log-format %u\n"
+#if !DISABLE_LOG_SPACE
+ "log-space %lu\n"
+#endif
+#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
+298,12
@@
version(void)
#endif
#if HAS_LOG
, ao_log_format
#endif
#if HAS_LOG
, ao_log_format
+#if !DISABLE_LOG_SPACE
+ , (unsigned long) ao_storage_log_max
+#endif
+#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);