add motor

This commit is contained in:
NeoZng
2022-10-29 23:14:19 +08:00
parent f46a463449
commit 5f59ebb916
21 changed files with 88 additions and 18731 deletions

View File

@@ -15,8 +15,8 @@ typedef struct tmp
CAN_HandleTypeDef* can_handle;
uint32_t tx_id;
uint32_t tx_mailbox;
uint8_t* tx_buff;
uint8_t* rx_buff;
uint8_t tx_buff[8];
uint8_t rx_buff[8];
uint32_t rx_id;
void (*can_module_callback)(struct tmp*); // callback needs an instance to tell among registered ones
} can_instance;