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

📄 readme.mguart

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 MGUART
字号:
##  $Id: README.mguart,v 1.1 2001/03/14 00:49:17 joel Exp $#Configuration Table Use=======================sDeviceName   The name of this device.deviceType   This field must be SERIAL_MG5UART.pDeviceFns   The device interface control table.  This may be:      + mg5uart_fns for interrupt driven IO      + mg5uart_fns_polled for polled IOdeviceProbe   This is the address of the routine which probes to see if the device   is present.pDeviceFlow   This field is ignored as hardware flow control is not currently supported.ulMargin    This is currently unused.ulHysteresis    This is currently unused.pDeviceParams    This is set to the default settings.ulCtrlPort1   This field is the address of the command register shared by both ports.ulCtrlPort2   This field is the address of the port being used.ulDataPort   This field is set to MG5UART_PORTA or MG5UART_PORTB.getRegistersetRegister   These do NOT follow standard conventions and are ignored.   The register address routines are hard-coded as this is    an on-CPU part and assumed to provide a 32-bit wide interface.getData   This is address of the RX buffer register.setData   This is address of the TX buffer register.ulClock   baudRate ClockulIntVector   This is the interrupt vector number associated with this chip.Example:#if (CONSOLE_USE_INTERRUPTS)#define MG5UART_FUNCTIONS &mg5uart_fns#else#define MG5UART_FUNCTIONS &mg5uart_fns_polled#endif{  "/dev/com0",                            /* sDeviceName */  SERIAL_MG5UART,                         /* deviceType */  MG5UART_FUNCTIONS,                      /* pDeviceFns */  NULL,                                   /* deviceProbe, assume it is there */  NULL,                                   /* pDeviceFlow */  16,                                     /* ulMargin */  8,                                      /* ulHysteresis */  (void *) NULL,               /* NULL */ /* pDeviceParams */  MONGOOSEV_PERIPHERAL_COMMAND_REGISTER,  /* ulCtrlPort1 */  MONGOOSEV_UART0_BASE,                   /* ulCtrlPort2 */  MG5UART_UART0,                          /* ulDataPort */  mg5uart_get_register,                   /* getRegister */  mg5uart_set_register,                   /* setRegister */  NULL, /* unused */                      /* getData */  NULL, /* unused */                      /* setData */  12000000,                               /* ulClock */  MONGOOSEV_IRQ_UART0_RX_FRAME_ERROR      /* ulIntVector -- base for port */}

⌨️ 快捷键说明

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