Hi, Santhosh,
Sorry for my late thanks. Last night, I was not able to wait for your reply
since it was very late at night here.
Now, I wish to learn, in the future, if I wish to use examples of V2, then I
have to comment that line "#define CONFIG_RTL_USE_V1_API 1" in the
"rtl_conf.h", right? Thanks again.
Yuhong
----- Original Message -----
>
> Hi Yuhong,
>
> These examples were using RTLinux v1 API's, but the current
> version is V2, which uses pthread's. For backward compatibity all the
> codes have ifdefs, In order to use V1 API's u need to compile V1 code.
> Hope i made it clear.
>
> -Santhosh
>
> On Tue, 8 Feb 2000, Yuhong Ren wrote:
>
> > Hi Santhosh,
> >
> > Your method is very effective, and no problem now. If you have time,
may I
> > ask you to please explain why that "uncomment" is needed? Thanks a lot
for
> > your time.
> >
> > Yuhong
> >
> >
> >
> > ----- Original Message -----
> > From: Santhosh Kumar M [CEC-S] <[EMAIL PROTECTED]>
> > To: Yuhong Ren <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 08, 2000 11:12 PM
> > Subject: Re: [rtl] Example of RTL
> >
> >
> > >
> > > Hi Yuhong,
> > >
> > > I forgot to mention to remove the hash define of RT_TASK u added.
> > >
> > > -Santhosh
> > >
> > > On Tue, 8 Feb 2000, Yuhong Ren wrote:
> > >
> > > > Hi, Santhosh,
> > > >
> > > > Thank you very much, I added the line of "#define RT_TASK
pthread_t" in
> > the
> > > > frank_module.c file, and the problem I mentioned last time
disappeared,
> > > > however, another problem came out, after "make", it told me some
> > warnings:
> > > > "implicit declaration of function rt_task_init, rt_task_wait,
> > > > rt_task_delete, rt_get_time, etc", and when I ran "make test", it
told
> > me
> > > > "unresolved symbol" of the functions mentioned above.
> > > >
> > > > Now, I have to doubt whether the path of some include files have
been
> > set up
> > > > well. Because I know the "RT_TASK" has been defined in
"rtl_sched.h",
> > and
> > > > the frank_module.c has declared the including of "rtl_sched.h", so I
> > think
> > > > the line of "#define RT_TASK pthread_t" is not needed in the
> > frank_module.c,
> > > > I am not sure if I am right.
> > > >
> > > > Thanks again, hope you could please tell me how to cope with the
second
> > > > problem. Looking forward to your kind instruction.
> > > >
> > > > Yuhong
> > > >
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: Santhosh Kumar M [CEC-S] <[EMAIL PROTECTED]>
> > > > To: Yuhong Ren <[EMAIL PROTECTED]>
> > > > Cc: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, February 08, 2000 9:17 PM
> > > > Subject: Re: [rtl] Example of RTL
> > > >
> > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > Include the following statement in frank_module.c file and do a
> > > > > make
> > > > > #define RT_TASK pthread_t
> > > > >
> > > > > -Santhosh
> > > > >
> > > > > > I am a new user of RTL. I just installed RTL 2.0 based on the
Linux
> > > > 2.2.13
> > > > > > kernel, it seems that everything is okay. I could run the
example of
> > > > > > "sound", "frank". However, when I enter the examples of
directory of
> > > > > > /rtlinux/rtl/examples/compat/, enter "make", then an error
> > information
> > > > came
> > > > > > out, it told me that "parse error before mytask". The line in
the
> > source
> > > > > > code is "RT_TASK mytask". I was puzzled since this line can be
> > compiled
> > > > > > through in other examples.
> > > > > >
> > > > > > Hope you could please tell me what is the problem, thanks a lot.
> > > > > >
> > > > > > Yuhong
> > > > > >
> > > > > >
> > > > > > --- [rtl] ---
> > > > > > To unsubscribe:
> > > > > > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> > > > > > echo "unsubscribe rtl <Your_email>" | mail
> > [EMAIL PROTECTED]
> > > > > > ----
> > > > > > For more information on Real-Time Linux see:
> > > > > > http://www.rtlinux.org/~rtlinux/
> > > > > >
> > > > >
> > > > > --- [rtl] ---
> > > > > To unsubscribe:
> > > > > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> > > > > echo "unsubscribe rtl <Your_email>" | mail
> > [EMAIL PROTECTED]
> > > > > ----
> > > > > For more information on Real-Time Linux see:
> > > > > http://www.rtlinux.org/~rtlinux/
> > > >
> > > > --- [rtl] ---
> > > > To unsubscribe:
> > > > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> > > > echo "unsubscribe rtl <Your_email>" | mail
[EMAIL PROTECTED]
> > > > ----
> > > > For more information on Real-Time Linux see:
> > > > http://www.rtlinux.org/~rtlinux/
> > > >
> > >
> >
> >
>
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/