can_struct_para_init(CAN_MDSC_STRUCT, &transmit_message);
transmit_message.rtr = 0;
transmit_message.ide = 0;
transmit_message.code = CAN_MB_TX_STATUS_DATA;
transmit_message.brs = 0;
transmit_message.fdf = 0;
transmit_message.prio = 0;
transmit_message.data_bytes = 8;
/* tx message content */
transmit_message.data = (uint32_t *)(tx_data);
transmit_message.id = 0x11;
can_mailbox_config(CAN0, 2, &transmit_message);
可以帮忙看一下哪里出错了吗 |