[En-Nut-Discussion] Defining ETHERNUT2?
ralph.mason at telogis.com
Tue Jan 6 23:56:22 CET 2004
You can define it in your makefile using -DETHERNUT2
You will see an example in the top level makefile for NUTDEBUG.
Loren Card wrote:
> Hello List,
> I'm an assembly guy new to the wonderful world of C.
> The sample applications with NutOS compile by default for Ethernut 1
> boards, nut I have an Ehthernut 2.
> If I add this:
> #define ETHERNUT2 1
> Whenerver I see this:
> #ifdef ETHERNUT2
> #include <dev/lanc111.h>
> #include <dev/nicrtl.h>
> Everything seems to work OK.
> Can I define ETHERNUT2 somwhere globally? so I don't need add a
> definition to source files of each project?
More information about the En-Nut-Discussion