[En-Nut-Discussion] main() or THREAD(NutMain, arg)?

Cosmin Buhu lists at byteworks.ro
Tue Aug 24 13:59:39 CEST 2004


    The confusion is as follows:
- init.c calls extern NutMain - this is deprecated
- nutinit.c calls extern main - preffered way
New application should use nutinit.c and main

The confusion appears becaus in 3.4.2 docs, in "Old System Initialization"
we can see:

"int main ( void  )
  Nut/OS main entry.
Deprecated:
New programs should link to nutinit.
"
etc. which may be read wrong in a hurry (as main being deprecated and not
init.c/NutMain).

Regards,
Cosmin




----- Original Message -----
From: "Harald Kipp" <harald.kipp at egnite.de>
To: "Ethernut User Chat (English)" <en-nut-discussion at egnite.de>
Sent: Tuesday, August 24, 2004 2:10 PM
Subject: Re: [En-Nut-Discussion] main() or THREAD(NutMain, arg)?


Hello José,

no idea where you read about main() being deprecated.

Like shown in the examples, simply use main().

Harald

At 20:49 23.08.2004 +0200, you wrote:
>Hi,
>I am new to the Nut/OS & Ethernut and, after browsing the available
>documentation, I don't really know if the correct entry point should be
main
>or NutMain. I've seen that main() is deprecated, but none of the examples
>use NutMain.
>
>Can Threads be destroyed in version 3.4.3?
>
>Thanks
>
>José Sánchez del Pozo
>
>
>_______________________________________________
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion




More information about the En-Nut-Discussion mailing list