Variables | |
NUTDEVICE | devUarts [] |
Device information structure. |
|
Initial value: { { 0, { 'u', 'a', 'r', 't', 's', '0', 0, 0, 0 }, IFTYP_STREAM, 1, 0, 0, &dcb_uart1, UartSpiInit, UartSpiIOCtl }, { 0, { 'u', 'a', 'r', 't', 's', '1', 0, 0, 0 }, IFTYP_STREAM, 2, 0, 0, &dcb_uart2, UartSpiInit, UartSpiIOCtl }, { 0, { 'u', 'a', 'r', 't', 's', '2', 0, 0, 0 }, IFTYP_STREAM, 3, 0, 0, &dcb_uart3, UartSpiInit, UartSpiIOCtl }, { 0, { 'u', 'a', 'r', 't', 's', '3', 0, 0, 0 }, IFTYP_STREAM, 4, 0, 0, &dcb_uart4, UartSpiInit, UartSpiIOCtl }, { 0, { 'u', 'a', 'r', 't', 's', '4', 0, 0, 0 }, IFTYP_STREAM, 5, 0, 0, &dcb_uart5, UartSpiInit, UartSpiIOCtl }, { 0, { 'u', 'a', 'r', 't', 's', '5', 0, 0, 0 }, IFTYP_STREAM, 6, 0, 0, &dcb_uart6, UartSpiInit, UartSpiIOCtl }, { 0, { 'u', 'a', 'r', 't', 's', '6', 0, 0, 0 }, IFTYP_STREAM, 7, 0, 0, &dcb_uart7, UartSpiInit, UartSpiIOCtl }, { 0, { 'u', 'a', 'r', 't', 's', '7', 0, 0, 0 }, IFTYP_STREAM, 8, 0, 0, &dcb_uart8, UartSpiInit, UartSpiIOCtl }, }
Applications must pass this structure to NutRegisterDevice() to bind this serial port device driver to the Nut/OS kernel. Having done that, the application may call NutDeviceOpen() with the name of this driver to initialize the interface. |