mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-08-20 22:14:34 +08:00
30 lines
523 B
C
30 lines
523 B
C
#ifndef COMMANDS_H
|
|
#define COMMANDS_H
|
|
|
|
// TODO: resolve assert
|
|
#define assert(expr)
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <functional>
|
|
#include <limits>
|
|
#include "crc.hpp"
|
|
|
|
extern "C" {
|
|
#endif
|
|
|
|
void init_communication(void);
|
|
void communication_task(void * ctx);
|
|
void set_cmd_buffer(uint8_t *buf, uint32_t len);
|
|
void usb_update_thread(void * ctx);
|
|
void USB_receive_packet(const uint8_t *buffer, size_t length);
|
|
|
|
extern uint64_t serial_number;
|
|
extern char serial_number_str[13];
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* COMMANDS_H */
|