lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Debuging thru UART


From: Paul Archer
Subject: Re: [lwip-users] Debuging thru UART
Date: Wed, 18 Jul 2012 11:56:15 +1000

On Wed, Jul 18, 2012 at 5:23 AM, Nico Sachs <address@hidden> wrote:
> Does someone have an idea whats wrong here?

Try this bit of code

#define LWIP_PLATFORM_ASSERT( x ) sys_assert( x )
#define LWIP_PLATFORM_DIAG( x, ... ) do{ sys_debug x; } while( 0 );

void
sys_assert( const char *msg )
{
    tmpbuf[256];
    sprintf(tmpbuf,msg);
    SCI2_PullString(tmpbuf);
}

void
sys_debug( const char *const fmt, ... )
{
    va_list         args;
    tmpbuf[256];

    va_start( args, fmt );
    vsprintf(tmpbuf, fmt, args);
    va_end( args );

    SCI2_PullString(tmpbuf);
}



----
Regards
Paul Archer
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]