[En-Nut-Discussion] questions
Marc Wetzel
mwse at gmx.de
Mon Nov 11 16:04:13 CET 2002
Hi Cho,
the answer is simple.
SHORT VERSION:
Basemon includes the functionality of init.c already.
LONG VERSION:
Init.c [.o] does some simple initialization of the threading engine:
Like adding your available XRAM, and starting the idle-thread and so
on...
Basemon.c is for testing: So, it checks the memory first by writing and
reading it respectively (you start it by selecting the appropriate menu
entry.) After a successful check a "idle-thread" is started and
everything continues as like you used init.c
Question to you:
What is so bad about LW-Threads??
Marc Wetzel
-----Original Message-----
From: en-nut-discussion-admin at egnite.de [mailto:en-nut-discussion-
admin at egnite.de] On Behalf Of Sangman Cho
Sent: Montag, 11. November 2002 12:20
To: en-nut-discussion at egnite.de
Subject: [En-Nut-Discussion] questions
Mr Kipp,
I have some questions.
1) What is the file 'init.o' 's role in ethernut?
I discover that the file is in Makefile of
application program except basemon.
Why Makefile in basemon have not init.o file?
2) Why thread is used in ethernut source code?
Is not there any other solutions except thread?
(without exception, Should we use thread?)
3) Finally, why ' int main (void) ' is only used in
basemon.c ?
Why other applications(that is, tcps.c, httpd.s etc..)
don't use 'int main (void)'?
Is there any reason?
Kind regards.
Cho
_____________________________________________________________________
디지탈 카메라와 찰떡 궁합- 야후! 사진
http://kr.photos.yahoo.com/
친구들과 함께 바꿔보세요. - 야후! 메신저
http://kr.messenger.yahoo.com/
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo/en-nut-discussion
More information about the En-Nut-Discussion
mailing list