迁移至 Arm Compiler 6

This commit is contained in:
2025-02-13 23:22:16 +08:00
parent 51ece5388b
commit ce5689342e
27 changed files with 9116 additions and 1072 deletions

View File

@@ -41,13 +41,13 @@ typedef struct{
static self_def g_self;
typedef struct _port_mcu{
struct _port_mcu{
protm_def *protm;
rt_timer_t timer;
int busy;
uint8_t addr;
handle_def *handle;
}port_mcu;
};
int port_init(void)

View File

@@ -21,7 +21,7 @@ typedef struct{
uint8_t ack_num;
int ret_skip;
int ack_size;
uint8_t ack[0];
uint8_t ack[];
}check_def;
@@ -192,8 +192,8 @@ transmit_export(ym_checker,0x30,check)
__packed
typedef struct{
typedef struct __packed{
char build_time[20];
char softverion[8];
int runtime;
@@ -216,7 +216,7 @@ typedef struct{
uint8_t slave_num;
uint8_t end_cmd;
int ack_size;
uint8_t ack[0];
uint8_t ack[];
}bootinfo_def;
@@ -353,8 +353,8 @@ transmit_export(ym_checker,0x04,bootinfo_coder)
__packed
typedef struct{
typedef struct __packed{
char devicetype[12];
char hostif[8];
uint8_t localip[4];

View File

@@ -23,12 +23,12 @@
#define PORT_NUM 20
typedef struct _tran_def{
struct _tran_def{
ucport_def *u;
port_mcu *port[PORT_NUM];
uint32_t slave_online;// 对应位为1则从机在线
int is_busy;
}tran_def;
};