Exemplo n.º 1
0
s8_t Ifx_Lwip_printf(const char *format, ...)
{
    /* WNC do not have console port */
    s8_t    result = ERR_CONN;
#if 0
#ifdef __LWIP_DEBUG__
    char    str[MAXCHARS + 4];
    s8_t    result = ERR_CONN;

    va_list args;
    va_start(args, format);
    vsnprintf(str, MAXCHARS, format, args);
    va_end(args);
    {
        Ifx_SizeT count = (Ifx_SizeT)strlen(str);

        if (Ifx_Console_lock())
        {
            result = IfxStdIf_DPipe_write(Ifx_g_Console.standardIo, str, &count, TIME_INFINITE);
            Ifx_Console_unlock();
        }
    }
#endif
#endif
    return result;
}
Exemplo n.º 2
0
static boolean Ifx_Shell_writeResult(Ifx_Shell *shell, Ifx_SizeT Code)
{
    Ifx_SizeT length = sizeof(Code);
    boolean   result = IfxStdIf_DPipe_write(shell->io, &Code, &length, TIME_INFINITE);

    IFX_ASSERT(IFX_VERBOSE_LEVEL_ERROR, result != FALSE);

    return result;
}
Exemplo n.º 3
0
void IfxStdIf_DPipe_print(IfxStdIf_DPipe *stdif, pchar format, ...)
{
    if (!stdif->txDisabled)
    {
        char      message[STDIF_DPIPE_MAX_PRINT_SIZE + 1];
        Ifx_SizeT count;
        va_list   args;
        va_start(args, format);
        vsprintf((char *)message, format, args);
        va_end(args);
        count = (Ifx_SizeT)strlen(message);
        IFX_ASSERT(IFX_VERBOSE_LEVEL_ERROR, count < STDIF_DPIPE_MAX_PRINT_SIZE);
        //return
        IfxStdIf_DPipe_write(stdif, (void *)message, &count, TIME_INFINITE);
    }
    else
    {
        //return TRUE;
    }
}