Git Product home page Git Product logo

lwip-arduino's Introduction

lwIP Arduino

This port allows to integrate lwIP with the Arduino platform. The motivation of this port, is to easily integrate a TCP/IP stack with any Mac-PHY chip in the Arduino platform.

Port Information

Port specific changes

  • Relative includes for source files. Arduino does not have an easy way to include directories in their build system. Done automatically with the python script relative-include.
  • Integrated Arduino SDK for implementation, to make it compatible with any Arduino board.
  • Changed extension of apps/http/fsdata.c to .c_ and changed as well the macro HTTPD_FSDATA_FILE. Arduino build system compiles .c and .cpp files by default. However, this file is intended to be only included by fs.c.

How to Use

Refer to the examples folder to an example of how you could integrate lwIP with a MAC-PHY chip. In addition read the official lwIP documentation. It requires that the user already has implemented the low-level access to the MAC-PHY chip to send/recieve ethernet frames and update the link status.

Debug

  • Debug options can be changed directly from the macros located in src/lwip_debug_opt.h.
  • Debug messages are sent via Serial object. Serial must be initialized (i.e. Serial.begin)

LwIP Options

Options are located in src/lwipopts.h

Notes

  • Currently the port is intended to work with bare metal systems. I.e., the OS Layer is not implemented. The reason is that Arduino does not have an OS abstraction layer and porting to a specific RTOs (ucos, VxWorks, FreeRTOS,etc) would make the library tightly coupled.
  • Not compatible with ESP32 core, as the ESP32 uses lwIP and will create a linkage conflict.
  • Will probably not fit in small MCUs, use something with much more SRAM and Flash such as the Arduino Due, RPI Pico.

lwip-arduino's People

Contributors

vchavezb avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.