AnsweredAssumed Answered

KSDK-1.1.0 EDMA documentation error?

Question asked by Ole Asbjorn Fadum on Jan 19, 2015
Latest reply on Jan 20, 2015 by Adrian Cano

This is the HTML documentation for KSDK v.1.1

Telling to use kEDMATransferSize_2Bytes as size argument,

BUT when open the EDMA_DRV_ConfigLoopTransfer source code the size is transfered to kEDMATransferSize_XBytes!!!

This must be an error???

 

edma_status_t EDMA_DRV_ConfigLoopTransfer(

                            edma_chn_state_t *chn, edma_software_tcd_t *stcd,

                            edma_transfer_type_t type,

                            uint32_t srcAddr, uint32_t destAddr, uint32_t size,

                            uint32_t bytesOnEachRequest, uint32_t totalLength, uint8_t number)

{

    assert(stcd);

 

    uint8_t i;

    edma_software_tcd_t *stcdAddr = (edma_software_tcd_t *)STCD_ADDR(stcd);

    edma_transfer_size_t transfersize;

    edma_transfer_config_t config;

 

    /* Set the software TCD memory to default value. */

    memset(stcdAddr, 0, number * sizeof(edma_software_tcd_t));

 

    /* translate the transfer size to eDMA allowed transfer size enum type. */

    switch(size)

    {

        case 1:

            transfersize = kEDMATransferSize_1Bytes;

            break;

        case 2:

            transfersize = kEDMATransferSize_2Bytes;

            break;

        case 4:

            transfersize = kEDMATransferSize_4Bytes;

            break;

        case 16:

            transfersize = kEDMATransferSize_16Bytes;

            break;

        case 32:

            transfersize = kEDMATransferSize_32Bytes;

            break;

        default:

            return kStatus_EDMA_InvalidArgument;

    }

Outcomes