Communication Example Code
Copyright © 2002 Marvell
CONFIDENTIAL
Doc. No. MV-S300165-00, Rev. A
May 21, 2002, Preliminary
Document Classification: Proprietary Information
Page 163
allocStruct.protocolType = MPSC_PROTOCOL;
allocStruct.rxOrTx = RX_DESCRIPTOR;
sdmaAllocateDescriptorsForOnePort(&allocStruct);
sdmaInitRxDescriptors(UARTPort,MPSC_PROTOCOL,PRIO0);
/* TX */
allocStruct.portNumber = UARTPort;
allocStruct.numberOfDescriptors = MIN_NUMBER_OF_UART_TX_DESC_ALLOC;
allocStruct.bufferSize = 0;
allocStruct.priority = PRIO0;
allocStruct.protocolType = MPSC_PROTOCOL;
allocStruct.rxOrTx = TX_DESCRIPTOR;
sdmaAllocateDescriptorsForOnePort(&allocStruct);
sdmaInitTxDescriptors(UARTPort,MPSC_PROTOCOL,PRIO0);
allocBuffersForTxDescriptors();
}