source: rtems/c/src/lib/libbsp/powerpc/beatnik/tod/todcfg.c @ 2e3ba71

5
Last change on this file since 2e3ba71 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/*
2 * This file contains the RTC driver table for Motorola shared BSPs.
3 *
4 * The license and distribution terms for this file may be
5 * found in the file LICENSE in this distribution or at
6 * http://www.rtems.org/license/LICENSE.
7 */
8
9#include <bsp.h>
10#include <libchip/rtc.h>
11#include <libchip/m48t08.h>
12
13/* The following table configures the RTC drivers used in this BSP */
14rtc_tbl RTC_Table[] = {
15    {
16        "/dev/rtc",                /* sDeviceName */
17        RTC_M48T08,                /* deviceType */
18        &m48t08_fns,               /* pDeviceFns */
19        rtc_probe,                 /* deviceProbe */
20        NULL,                      /* pDeviceParams */
21        BSP_NVRAM_RTC_START,       /* ulCtrlPort1 */
22        0x00,                      /* ulDataPort */
23        m48t08_get_register,       /* getRegister */
24        m48t08_set_register        /* setRegister */
25    }
26};
27
28/* Some information used by the RTC driver */
29
30#define NUM_RTCS (sizeof(RTC_Table)/sizeof(rtc_tbl))
31
32size_t RTC_Count = NUM_RTCS;
33
34rtems_device_minor_number RTC_Minor;
Note: See TracBrowser for help on using the repository browser.