RTC bsp trouble.
joel.sherrill at OARcorp.com
Thu Jan 29 18:30:41 UTC 2004
Cedric Aubert wrote:
> Hi all,
> I try to had a rtc driver into my bsp, and I have some
> trouble with it.
> First question, I understood that RTEMS only use the
> clock ticks to do it's
> it doesn't use the rtc at all. Am I right ?
> In fact in need to use (in my application) the
> fucntion setRealTimeToRTEMS()
> setRealTimeFromRTEMS() from my rtc driver to
> synchronise RTEMS tod and RTC
> Am I right?
> In fact I use the generic rtc driver with
> provided in libbsp/shared. I make a tod directory, had
> it to configure, bsp
> and wrapup makefile.
Did you put in a tod configuration similar to
that in the powerpc/dmv177 BSP?
> Now my trouble is in my application compilation, I
> can't link with
> and setRealTimeFromRTEMS() and rtc_initialize
> (undefined symbol) , in fact
> all function in the generic rtc
> driver provide in libbsp/shared/tod.c
You are not including the RTC device driver in your
should let confdehs.h know about it.
> Did I make some mistake or miss something ?
> Or should am I wrong by using this function in my
> application ?
Sound like you missed the confdefs.h constant and
are not getting the driver installed. You may
also not have the RTC/TOD configuration.
Also make sure your tod directory in your BSP
is doing the magic to get the shared tod.c and tod.h .
> Thanks a lot
> Cedric AUBERT
> Ingenieur Recherche et Developpement
> SDEL Controle Commande
> D2A - Rue Nungesser et Coli
> 44860 Saint Aignan de Grand Lieu
> Tel : +33 (0)2 40 84 50 00
> Poste : 5109
> Fax : +33 (0)2 40 84 51 10
> E-mail : cedric_aubert at yahoo.fr
> Web : http://www.sdelcc.com
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
More information about the users