[En-Nut-Discussion] Newbie - NUTos questions.
James Flanagan
james.flanagan at stsint.com
Thu Sep 29 16:25:19 CEST 2005
Harald Kipp wrote:
> Hi Jim,
>
> At 08:47 29.09.2005 -0400, you wrote:
>
>> The question(s):
>> 1) MUST I use the NutOS in order to use the Ethernet Libraries?
>
>
> The kernel provides four very basic functions:
> 1. Dynamic Memory
> 2. Events
> 3. Timers
> 4. Threads
>
> 3 and 4 use 2 and all of them use 1. The Ethernet driver
> uses a receiver thread and timers.
>
>> 2) Since our design will have about 5 different communication ports
>> (several RS232, ethernet, CAN, etc)
>> I would prefer to not use the Nut provided printf function and
>> continue to use the imagecraft provided printf function.
>> Is this OK?
>
>
> Possibly a bit tricky, but it should work. Do not link
> with libnutcrt and remove
>
> #define printf printf_M
> #define puts puts_M
> #define sprintf sprintf_M
> #define vprintf vprintf_M
> #define scanf scanf_M
> #define gets gets_M
>
> from compiler.h or use
>
> #undef printf
> #undef puts
> #undef sprintf
> #undef vprintf
> #undef scanf
> #undef gets
>
> in your application code. But be aware that the ImageCraft
> lib doesn't provide fprintf.
>
> You can always check the .mp file to see which library
> parts were linked.
>
> Harald
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
Thanks for the input...We'll see how things go.
Take care.
-jim
--
James (Jim) Flanagan
STS International, Inc.
9875 18th St. N.
St. Petersburg, Florida 33716
(727) 828-1554
james.flanagan at stsint.com
More information about the En-Nut-Discussion
mailing list