Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Modifying usrClock

37 views
Skip to first unread message

Andrea Bigagli

unread,
Jun 19, 2000, 3:00:00 AM6/19/00
to
Hi everybody,
I'm using VxWorks 5.4 on an i960 target and I'd like to have my watchdog
reset at every system tick. How can I make it using the usrClock function?
I've modified it but when I recompile the OS it seems like the usrConfig.c
isn't considered at all..
Sorry if this is a stupid question, but I can't find anything in the docs
that can help me in making the OS know that I want a different usrClock
function to be used.
Thank you in advance for any information about this problem.

Vijay Kumar Peshkar

unread,
Jun 19, 2000, 3:00:00 AM6/19/00
to
Hi,

You are right. Unlike older versions..the 5.4 is more based on GUI and
does not
use many files. I remember facing similar probs. when I switched to 5.4
from
older versions. Sorry..I am no more on vxworks and so can't give any
more useful info ;0(
But there are appropriate comments etc incode telling you this. Also you
may like to
have a look at the booklet that comes with every new release, briefing
the differences.

Vijay

vpeshkar.vcf

Achim Zimmer

unread,
Jun 20, 2000, 3:00:00 AM6/20/00
to
copy the file "sysClkInit.c" to your BSP directory
There are two functions:
usrClkInit() and usrClock() in which you can insert your code.
Then rebuild your dependencies, so that this file is included in it.

Achim


Vijay Kumar Peshkar <vpes...@cisco.com> schrieb in im Newsbeitrag:
394ED320...@cisco.com...

Andrea Bigagli

unread,
Jun 20, 2000, 3:00:00 AM6/20/00
to

Achim Zimmer <hzi...@dica.de> wrote in message
8infe7$6mn$1...@crusher.de.colt.net...

> copy the file "sysClkInit.c" to your BSP directory
> There are two functions:
> usrClkInit() and usrClock() in which you can insert your code.
> Then rebuild your dependencies, so that this file is included in it.
>
> Achim

Wow! Thank you for your answer.
To tell you the truth I had already found that the solution was to modify
the file sysClkInit.c, but I didn't know that it was possible to copy it in
the BSP folder and make the project include it.
Could you please explain me how is it that rebuilding of dependencies makes
the project aware of the new location of the sysClkInitl.c file?
This may seem a stupid question, but I'm trying to get a deeper knowledge of
the process of creating the OS image file and I think that prjConfig.c file
plays an important role, isn't it? ;-)
Thank you again if you can answer to this little curiosity too...
Bye,
Andrea Bigagli

Vividh Siddha

unread,
Jun 22, 2000, 3:00:00 AM6/22/00
to
As Vxworks has a flat memory model it will take ur new clk function...
0 new messages