if (cmdline->param(0) == 0)
{
if (long_help)
- con->printf("%s\n", long_help);
+ con->dd_printf("%s\n", long_help);
else
- con->printf("What to do?\n");
+ con->dd_printf("What to do?\n");
return(0);
}
if ((s= cmdline->param(0)->get_svalue()))
{
if (cmdline->param(1) == 0)
{
- con->printf("Timer number is missing\n");
+ con->dd_printf("Timer number is missing\n");
return(0);
}
set_ticker(uc, cmdline->param(1));
else if (strstr(s, "v") == s)
return(val(uc, cmdline, con));
else
- con->printf("Undefined timer command: \"%s\". Try \"help timer\"\n",
+ con->dd_printf("Undefined timer command: \"%s\". Try \"help timer\"\n",
s);
}
return(0);
if (!name &&
what < 1)
{
- con->printf("Error: Timer id must be greater then zero or a string\n");
+ con->dd_printf("Error: Timer id must be greater then zero or a string\n");
return(DD_FALSE);
}
if (ticker)
{
if (name)
- con->printf("Error: Timer \"%s\" already exists\n", name);
+ con->dd_printf("Error: Timer \"%s\" already exists\n", name);
else
- con->printf("Error: Timer %d already exists\n", what);
+ con->dd_printf("Error: Timer %d already exists\n", what);
return(0);
}
if (params[2])
if (!params[2]->get_ivalue(&dir))
{
- con->printf("Error: Wrong direction\n");
+ con->dd_printf("Error: Wrong direction\n");
return(DD_FALSE);
}
if (params[3])
if (!params[3]->get_ivalue(&in_isr))
{
- con->printf("Error: Wrong parameter\n");
+ con->dd_printf("Error: Wrong parameter\n");
return(DD_FALSE);
}
if (!ticker)
{
if (name)
- con->printf("Timer \"%s\" does not exist\n", name);
+ con->dd_printf("Timer \"%s\" does not exist\n", name);
else
- con->printf("Timer %d does not exist\n", what);
+ con->dd_printf("Timer %d does not exist\n", what);
return(0);
}
if (name)
if (!ticker)
{
if (name)
- con->printf("Timer %d does not exist\n", name);
+ con->dd_printf("Timer %d does not exist\n", name);
else
- con->printf("Timer %d does not exist\n", what);
+ con->dd_printf("Timer %d does not exist\n", what);
return(0);
}
ticker->options|= TICK_RUN;
if (!ticker)
{
if (name)
- con->printf("Timer %d does not exist\n", name);
+ con->dd_printf("Timer %d does not exist\n", name);
else
- con->printf("Timer %d does not exist\n", what);
+ con->dd_printf("Timer %d does not exist\n", what);
return(0);
}
ticker->options&= ~TICK_RUN;
if (!ticker)
{
if (name)
- con->printf("Error: Timer %d does not exist\n", name);
+ con->dd_printf("Error: Timer %d does not exist\n", name);
else
- con->printf("Error: Timer %d does not exist\n", what);
+ con->dd_printf("Error: Timer %d does not exist\n", what);
return(0);
}
if (params[2])
{
- con->printf("Error: Value is missing\n");
+ con->dd_printf("Error: Value is missing\n");
return(DD_FALSE);
}
long val;
if (!params[2]->get_ivalue(&val))
{
- con->printf("Error: Wrong parameter\n");
+ con->dd_printf("Error: Wrong parameter\n");
return(DD_FALSE);
}
ticker->ticks= val;