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

📄 devices.c

📁 AT91所有开发板的资料 AT91所有开发板的资料
💻 C
字号:
/* -*-C-*- * * $Revision:  $ *   $Author:  $ *     $Date:  $ * * Copyright (c) 1996 Advanced RISC Machines Limited. * All Rights Reserved. * *   Project: ANGEL * *     Title: Device tables -- just one serial device for now. */#include "angel.h"#include "devconf.h"#include "devdriv.h"#include "evaluator.h"#include "c501uart.h"/* * Headers declaring the angel_DeviceEntry struct for each device * should be included here: */#if DEBUG && LOGTERM_DEBUGGING# include "logging/logterm.h"#endif#if DCC_SUPPORTED# include "dccdrv.h"#endif#if ETHERNET_SUPPORTED# include "ethernet.h"                  /* Fusion Ethernet */#endif#if PCI_SUPPORTED# include "pci.h"                       /* PCI Controller */#endif#if PCMCIA_SUPPORTED# include "pcmcia.h"                    /* PCMCIA Controller */#endif#if PROFILE_SUPPORTED# include "prof.h"#endif/* * The master device table - one entry per device * ORDER AND NUMBER OF ENTRIES MUST MATCH enum DeviceIdent IN target.h */const struct angel_DeviceEntry *const angel_Device[DI_NUM_DEVICES] ={    &angel_C501UARTSerial[0],#if (C501UART_NUM_PORTS > 1)    &angel_C501UARTSerial[1],#elif DEBUG && LOGTERM_DEBUGGING    &angel_NullDevice,#endif#if ETHERNET_SUPPORTED    &angel_EthernetDevice,#endif#if DCC_SUPPORTED    &angel_DccDevice,#endif};/* * The interrupt handler table - one entry per handler. * * DE_NUM_INT_HANDLERS must be set in devconf.h to the number of * entries in this table. */#if (DE_NUM_INT_HANDLERS > 0)const struct angel_IntHandlerEntry angel_IntHandler[DE_NUM_INT_HANDLERS] ={    { angel_C501UARTIntHandler, DI_C501UART_B }#if (C501UART_NUM_PORTS > 1)   ,{ angel_C501UARTIntHandler, DI_C501UART_A }#elif DEBUG && LOGTERM_DEBUGGING   ,{ angel_LogtermIntHandler, DI_C501UART_A }#else   ,{ angel_NodevIntHandler, 0}#endif    #if TIMER_SUPPORTED   ,{ Angel_TimerIntHandler, 0 }#endif};#endif/* * The poll handler table - one entry per handler * * DE_NUM_POLL_HANDLERS must be set in devconf.h to the number of * entries in this table. */#if (POLLING_SUPPORTED && DE_NUM_POLL_HANDLERS > 0)const struct angel_PollHandlerEntry angel_PollHandler[DE_NUM_POLL_HANDLERS] ={#if DCC_SUPPORTED    { (angel_PollHandlerFn)dcc_PollRead, DI_DCC,      (angel_PollHandlerFn)dcc_PollWrite, DI_DCC },#endif};#endif/* EOF devices.c */

⌨️ 快捷键说明

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