/* Configures the specified DMA Tx Desc buffer1 and buffer2 sizes.  */
void ETH_ConfigDmaTxDescBufSize(ETH_DMADescType *DMATxDesc, uint32_t BufferSize1, uint32_t BufferSize2)
/* Configures the specified DMA Tx Desc buffer1 and buffer2 sizes.  */
void ETH_ConfigDmaTxDescBufSize(ETH_DMADescType *DMATxDesc, uint32_t BufferSize1, uint32_t BufferSize2)
{
    assert_param(IS_ETH_DMA_TX_DESC_BUFFER_SIZE(BufferSize1));
    assert_param(IS_ETH_DMA_TX_DESC_BUFFER_SIZE(BufferSize2));
    DMATxDesc->CtrlOrBufSize |= (BufferSize1 | (BufferSize2 << ETH_DMA_TX_DESC_BUF2_SIZE_SHIFT));
}