git.droids-corp.org
/
protos
/
xbee-avr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add rc_proto log type
[protos/xbee-avr.git]
/
commands_gen.c
diff --git
a/commands_gen.c
b/commands_gen.c
index
d09d69e
..
461a807
100644
(file)
--- a/
commands_gen.c
+++ b/
commands_gen.c
@@
-122,10
+122,7
@@
static void cmd_callout_parsed(void *parsed_result, void *data)
{
(void)parsed_result;
(void)data;
{
(void)parsed_result;
(void)data;
- printf_P(PSTR("intr_cm:\n"));
callout_dump_stats(&xbeeboard.intr_cm);
callout_dump_stats(&xbeeboard.intr_cm);
- printf_P(PSTR("mainloop_cm:\n"));
- callout_dump_stats(&xbeeboard.mainloop_cm);
}
const char PROGMEM str_callout_arg0[] = "callout";
}
const char PROGMEM str_callout_arg0[] = "callout";
@@
-160,6
+157,8
@@
struct cmd_log_result {
static const char PROGMEM uart_log[] = "uart";
static const char PROGMEM i2c_log[] = "i2c";
static const char PROGMEM default_log[] = "default";
static const char PROGMEM uart_log[] = "uart";
static const char PROGMEM i2c_log[] = "i2c";
static const char PROGMEM default_log[] = "default";
+static const char PROGMEM xbee_log[] = "xbee";
+static const char PROGMEM rc_proto_log[] = "rc_proto";
struct log_name_and_num {
const char *name;
struct log_name_and_num {
const char *name;
@@
-170,6
+169,8
@@
static const struct log_name_and_num log_name_and_num[] = {
{ uart_log, E_UART },
{ i2c_log, E_I2C },
{ default_log, E_USER_DEFAULT },
{ uart_log, E_UART },
{ i2c_log, E_I2C },
{ default_log, E_USER_DEFAULT },
+ { xbee_log, E_USER_XBEE },
+ { rc_proto_log, E_USER_RC_PROTO },
};
static uint8_t
};
static uint8_t