初始提交

This commit is contained in:
2025-12-06 22:11:58 +08:00
commit 0fabb219bb
1479 changed files with 1061554 additions and 0 deletions

23
Core/Inc/can2.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef __CAN2_H
#define __CAN2_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32f4xx_hal.h"
#include "remote.h"
// CAN数据包结构
typedef struct {
uint8_t data[8];
} can_packet_t;
// 函数声明
void rc_can_init(void);
void send_rc_data(const rc_info_t *rc);
void pack_rc_to_can(const rc_info_t *rc, can_packet_t *packet1, can_packet_t *packet2);
#ifdef __cplusplus
}
#endif
#endif /* __CAN2_H */