Initializing system clock on PC386
Richardson, Anthony
ar63 at evansville.edu
Tue Feb 15 14:13:19 UTC 2005
It appears that on the PC the only thing I need to do
to initialize the system clock with the real-time clock
is:
rtems_time_of_day time_buffer;
rtc_read(&time_buffer);
rtems_clock_set(&time_buffer);
but I get a link error "undefined reference to `rtc_read'".
Am I overlooking something? I can't find
rtc_read() in any of the libraries.
Thanks,
Tony Richardson
========================================================================
===
P.S. Here's the full output from make:
$ make
i386-rtems-gcc --pipe
-B/opt/rtems-4.6/tools/pc386-install/i386-rtems/pc386/lib/ -specs
bsp_specs -qrtems -g -Wall -O4 -g -Wl,-Ttext,0x00100000
-o o-optimize/wallclock.obj o-optimize/wallclock.o
/opt/rtems-4.6/tools/pc386-install/i386-rtems/pc386/lib/no-dpmem.rel
/opt/rtems-4.6/tools/pc386-install/i386-rtems/pc386/lib/no-event.rel
/opt/rtems-4.6/tools/pc386-install/i386-rtems/pc386/lib/no-msg.rel
/opt/rtems-4.6/tools/pc386-install/i386-rtems/pc386/lib/no-mp.rel
/opt/rtems-4.6/tools/pc386-install/i386-rtems/pc386/lib/no-part.rel
/opt/rtems-4.6/tools/pc386-install/i386-rtems/pc386/lib/no-signal.rel
/opt/rtems-4.6/tools/pc386-install/i386-rtems/pc386/lib/no-timer.rel
/opt/rtems-4.6/tools/pc386-install/i386-rtems/pc386/lib/no-rtmon.rel
o-optimize/wallclock.o: In function `Init':
/home/ar63/rtems/projects/wallclock/wallclock.c:17: undefined reference
to `rtc_read'
collect2: ld returned 1 exit status
make: *** [o-optimize/wallclock.exe] Error 1
More information about the users
mailing list