Changeset 29322a8d in rtems


Ignore:
Timestamp:
Oct 11, 2004, 3:00:23 PM (17 years ago)
Author:
Eric Norum <WENorum@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a51d024
Parents:
efab64d
Message:

Add libchip driver for Motorola MC146818A time-of-day clock chip.
Modify i386/pc386 BSP to use this driver.

Location:
c/src
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/Makefile.am

    refab64d r29322a8d  
    5151EXTRA_PROGRAMS += clock.rel
    5252CLEANFILES += clock.rel
    53 clock_rel_SOURCES = clock/ckinit.c clock/rtc.c
     53clock_rel_SOURCES = clock/ckinit.c clock/todcfg.c ../../shared/tod.c
    5454clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
    5555clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
  • c/src/libchip/Makefile.am

    refab64d r29322a8d  
    6767# rtc
    6868if LIBCHIP
    69 include_libchip_HEADERS += rtc/rtc.h rtc/icm7170.h rtc/m48t08.h
     69include_libchip_HEADERS += rtc/rtc.h rtc/icm7170.h rtc/m48t08.h rtc/mc146818a.h
    7070
    7171EXTRA_LIBRARIES += librtcio.a
     
    7474librtcio_a_SOURCES = rtc/rtcprobe.c rtc/icm7170.c rtc/icm7170_reg.c \
    7575    rtc/icm7170_reg2.c rtc/icm7170_reg4.c rtc/icm7170_reg8.c rtc/m48t08.c \
    76     rtc/m48t08_reg.c rtc/m48t08_reg2.c rtc/m48t08_reg4.c rtc/m48t08_reg8.c
     76    rtc/m48t08_reg.c rtc/m48t08_reg2.c rtc/m48t08_reg4.c rtc/m48t08_reg8.c \
     77    rtc/mc146818a.c rtc/mc146818a_ioreg.c
    7778
    7879EXTRA_LIBRARIES += librtcio_g.a
  • c/src/libchip/rtc/rtc.h

    refab64d r29322a8d  
    3333  RTC_M48T08,                  /* SGS-Thomsom M48T08 or M48T18 */
    3434  RTC_ICM7170,                 /* Harris ICM-7170 */
    35   RTC_CUSTOM                   /* BSP specific driver */
     35  RTC_CUSTOM,                  /* BSP specific driver */
     36  RTC_MC146818A                /* Motorola MC146818A */
    3637} rtc_devs;
    3738
Note: See TracChangeset for help on using the changeset viewer.