[En-Nut-Discussion] Defining ETHERNUT2?

Loren Card lcard at ee.umanitoba.ca
Tue Jan 6 21:17:07 CET 2004


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>
#else
#include <dev/nicrtl.h>
#endif

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?

./Loren




More information about the En-Nut-Discussion mailing list