⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 todcfg.c

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 C
字号:
/* * This file contains the RTC driver table for Motorola shared BSPs. * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. * * $Id: todcfg.c,v 1.2.2.1 2004/10/13 00:03:09 ericn Exp $ */#include <bsp.h>#include <libchip/rtc.h>#include <libchip/mc146818a.h>/* The following table configures the RTC drivers used in this BSP */rtc_tbl RTC_Table[] = {    {        "/dev/rtc",                /* sDeviceName */        RTC_MC146818A,             /* deviceType */        &mc146818a_fns,            /* pDeviceFns */        mc146818a_probe,           /* deviceProbe */        NULL,                      /* pDeviceParams */        0x70,                      /* ulCtrlPort1 */        0x00,                      /* ulDataPort */        mc146818a_get_register,    /* getRegister */        mc146818a_set_register     /* setRegister */    }};/* Some information used by the RTC driver */#define NUM_RTCS (sizeof(RTC_Table)/sizeof(rtc_tbl))unsigned long RTC_Count = NUM_RTCS;rtems_device_minor_number RTC_Minor;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -