[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Initializing system clock on PC386
- Date: Tue, 15 Feb 2005 08:13:19 -0600
- From: "Richardson, Anthony" <ar63 at evansville dot edu>
- Subject: Initializing system clock on PC386
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