lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] TCP/IP/PPP for bare-metal


From: Ajay Garg
Subject: [lwip-users] TCP/IP/PPP for bare-metal
Date: Sat, 22 Aug 2015 13:18:26 +0530

Hi All.

I started writing the following, using the link http://lwip.wikia.com/wiki/PPP

#############################################################
#include <stdio.h>
#include <unistd.h>

#include "lwip/tcpip.h"

static void tcpip_init_done(void *arg)
{
    if (arg) {
        *((char *)arg) = 1;
    }
}

int main()
{
    int setup = 0;
    printf("Initializing TCP\n");
    tcpip_init(tcpip_init_done, &setup);
    printf("Done !!!\n");

    while(1)
    {
        sleep(1);
    }
    return 0;
}
#############################################################


Following is lwipopts.h ::

#############################################################
#ifndef __LWIPOPTS_H__
#define __LWIPOPTS_H__

#define NO_SYS                      1

#endif
#############################################################



Upon compiling, it says that "main.c:18:5: warning: implicit declaration of function ‘tcpip_init’ [-Wimplicit-function-declaration]", even though lwip/tcpip.h is very much in the include-path.

Looking at lwip/tcpip.h, it seems that all the function headers are wrapped within
                                                    #if !NO_SYS



So, are there any good starting-points wherein I may implement the TCP/IP/PPP layers for bare-metal?
Is that even doable for bare-metal?


Thanks and Regards,
Ajay

reply via email to

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