1
Dependencies: mcp2515 mbed-dev-f303
Diff: CAN/CAN.h
- Revision:
- 4:2503c88a564f
- Parent:
- 2:cd74a8cb03b0
--- a/CAN/CAN.h Wed Jun 30 12:15:37 2021 +0000 +++ b/CAN/CAN.h Tue Jan 11 02:19:55 2022 +0000 @@ -6,7 +6,8 @@ #include "math_ops.h" #include "leg_message.h" #include "used_leg_message.h" - +#include "CAN3.h" +#include "mcp2515.h" // 宏定义 #define CAN_ID 0x01 // Master CAN ID @@ -26,7 +27,12 @@ // 对象外部申明 extern CAN pf_can, df_can; //设备的外部申明 extern CANMessage pf_rxMsg, df_rxMsg; // 主控收到的CAN消息 -extern CANMessage PF_can, DF_can; // 主控发送的CAN消息 +extern CANMessage pf_txMsg, df_txMsg; // 主控发送的CAN消息 + +extern CAN3 df1_can; +extern CANMessage df1_txMsg; +extern CANMessage df1_rxMsg; + // 函数外部申明 void pack_cmd(CANMessage * msg, joint_control joint);