Skip to content

_serial_dma_tx中的dma发送去做dataqueue意义不大 #11176

@hiiizxf

Description

@hiiizxf

rt_inline int _serial_dma_tx(struct rt_serial_device *serial, const rt_uint8_t *data, int length)

_serial_dma_tx中的dma发送如果不做同步发送,由于dataqueue没有拷贝数据副本,将可能出现内存非法访问
如果做了同步机制,由于tx_complete回调局限于device,只能做串行化发送,dataqueue失去了想要实现的异步效果

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions