Skip to content

CANTransmit 函数返回类型与 HAL 函数矛盾 #3

@hanbinzheng

Description

@hanbinzheng

bsp/can/bsp_can.c 里的 CANTransmit 在成功时返回1,否则返回0。但是 HAL_CAN_AddTxMessage 函数如果发送成功返回 HAL_OK, 否则为 HAL_ERROR,而 HAL_OK 定义为0 HAL_ERROR 定义为1

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