Skip to content

return type of dma_transfer_count #4

@SteKme

Description

@SteKme

Hi,

please are You sure return type INT is appropriate for dma_transfer_count()? To me, it seems uint is the correct one: if max number of transfers (0xffffffff) is set to the counter for an endless ring buffer writing, int function would return negative values..

Possibly applicable to read addr, write addr... functions as well.

Thank You,
Stepan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions