can支持自定义id解析了

This commit is contained in:
2025-08-07 04:40:31 +08:00
parent 3e49722616
commit 3159d3ae1a
38 changed files with 558 additions and 350 deletions

View File

@@ -45,12 +45,12 @@ typedef enum {
WHITE
} UI_Color_t;
typedef struct __packed {
typedef __Packed struct {
uint8_t op;
uint8_t num_layer;
} UI_InterStudent_UIDel_t;
typedef struct __packed {
typedef __Packed struct {
uint8_t name[3];
uint8_t type_op : 3;
uint8_t type_ele : 3;
@@ -66,28 +66,28 @@ typedef struct __packed {
uint16_t y_end : 11;
} UI_Ele_t;
typedef struct __packed {
typedef __Packed struct {
UI_Ele_t grapic;
} UI_Drawgrapic_1_t;
typedef struct __packed {
typedef __Packed struct {
UI_Ele_t grapic[2];
} UI_Drawgrapic_2_t;
typedef struct __packed {
typedef __Packed struct {
UI_Ele_t grapic[5];
} UI_Drawgrapic_5_t;
typedef struct __packed {
typedef __Packed struct {
UI_Ele_t grapic[7];
} UI_Drawgrapic_7_t;
typedef struct __packed {
typedef __Packed struct {
UI_Ele_t grapic;
uint8_t character[30];
} UI_Drawcharacter_t;
typedef struct __packed {
typedef __Packed struct {
uint8_t del_operation;
uint8_t layer;
} UI_Del_t;

View File

@@ -117,16 +117,16 @@ inline float CalculateRpm(float bullet_speed, float fric_radius, bool is17mm) {
return 60.0f * (float)bullet_speed / (M_2PI * fric_radius);
}
/**
* @brief 断言失败处理
*
* @param file 文件名
* @param line 行号
*/
void VerifyFailed(const char *file, uint32_t line) {
UNUSED(file);
UNUSED(line);
while (1) {
__NOP();
}
}
// /**
// * @brief 断言失败处理
// *
// * @param file 文件名
// * @param line 行号
// */
// void VerifyFailed(const char *file, uint32_t line) {
// UNUSED(file);
// UNUSED(line);
// while (1) {
// __NOP();
// }
// }

View File

@@ -8,12 +8,11 @@
extern "C" {
#endif
#include "stm32f4xx.h"
#define ARM_MATH_CM4
#include <float.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#define M_DEG2RAD_MULT (0.01745329251f)
#define M_RAD2DEG_MULT (57.2957795131f)
@@ -149,10 +148,10 @@ float CalculateRpm(float bullet_speed, float fric_radius, bool is17mm);
#define VERIFY(expr) ((void)(expr))
#endif
/**
* @brief 断言失败处理
*
* @param file 文件名
* @param line 行号
*/
void VerifyFailed(const char *file, uint32_t line);
// /**
// * @brief 断言失败处理
// *
// * @param file 文件名
// * @param line 行号
// */
// void VerifyFailed(const char *file, uint32_t line);