修改了基础的device生成

This commit is contained in:
2025-08-07 19:14:32 +08:00
parent 3159d3ae1a
commit c8ca5e1031
15 changed files with 724 additions and 451 deletions

View File

@@ -1,7 +1,7 @@
/*
UI相关命令
*/
#include "component\ui.h"
#include "component/ui.h"
#include <stdio.h>

View File

@@ -11,7 +11,7 @@ extern "C" {
#include <stdint.h>
#include <string.h>
#include "component\user_math.h"
#include "component/user_math.h"
#define UI_DEL_OPERATION_NOTHING (0)
#define UI_DEL_OPERATION_DEL (1)
@@ -45,12 +45,12 @@ typedef enum {
WHITE
} UI_Color_t;
typedef __Packed struct {
typedef struct __packed {
uint8_t op;
uint8_t num_layer;
} UI_InterStudent_UIDel_t;
typedef __Packed struct {
typedef struct __packed {
uint8_t name[3];
uint8_t type_op : 3;
uint8_t type_ele : 3;
@@ -66,28 +66,28 @@ typedef __Packed struct {
uint16_t y_end : 11;
} UI_Ele_t;
typedef __Packed struct {
typedef struct __packed {
UI_Ele_t grapic;
} UI_Drawgrapic_1_t;
typedef __Packed struct {
typedef struct __packed {
UI_Ele_t grapic[2];
} UI_Drawgrapic_2_t;
typedef __Packed struct {
typedef struct __packed {
UI_Ele_t grapic[5];
} UI_Drawgrapic_5_t;
typedef __Packed struct {
typedef struct __packed {
UI_Ele_t grapic[7];
} UI_Drawgrapic_7_t;
typedef __Packed struct {
typedef struct __packed {
UI_Ele_t grapic;
uint8_t character[30];
} UI_Drawcharacter_t;
typedef __Packed struct {
typedef struct __packed {
uint8_t del_operation;
uint8_t layer;
} UI_Del_t;

View File

@@ -25,6 +25,10 @@ extern "C" {
#define M_2PI 6.28318530717958647692f
#endif
#ifndef __packed
#define __packed __attribute__((__packed__))
#endif /* __packed */
#define max(a, b) \
({ \
__typeof__(a) _a = (a); \