uIP-AVR

 uIP-AVR

Overview
Status
Getting Started
Download
 

  


Main Site

Embedded Projects
Skating
About Me


  


Related Links

uIP Homepage

EDTP
Sells the Packet Whacker module 

microVNC
An application using uIP-AVR

  

Getting Started  

To run your first uIP application:

  • Read the documentation available on the uIP homepage
  • Create your application following the included app.c/app.h files, and simple examples in the documentation
  • (GCC only) Include your new file in the sample makefile 
  • Modify uipopt.h for your application, and desired MAC/IP address
  • (0.60 only) Set the same MAC address in the rtl8019.h header file
  • Setup your NIC interface in the rtl8019.h or ax88796.h header
  • (0.90 only) Select your NIC using nic.h
  • Set your AVR's clock speed in delay.h
  • Add an init call to your application into main.c
  • (Imagecraft only) Include your device's ioxxx.h file in compiler.h
  • Modify the timer code in main to call the periodic function every 0.50 seconds

Device Specific Modifications:

The sections of code specific to individual AVR devices deal with the hardware timer used to generate periodic calls to uIP, and the interface to the network device.  These functions are grouped together in main.c and rtl8019.c for easy modification.

The current timer functions use the Timer 0 Overflow interrupt to increment a counter.  All that should be required here is to change the names of the timer I/O registers or interrupt vector for your specific device, as well as the clock speed of your chip. Look in main.c

The general I/O port interface to the NIC should be generic enough to be used with any AVR with a high enough pin-count.  Simple modifications to port and pin definitions in rtl8019.h is all that is required to port the NIC driver over to your device.

  

Copyright © 2004 Louis Beaudoin

Page Last Updated: November 1, 2004