迁移至 Arm Compiler 6
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
|
||||
|
||||
#include "stdint.h"
|
||||
#include "cmsis_compiler.h"
|
||||
|
||||
|
||||
|
||||
__packed
|
||||
typedef struct{
|
||||
typedef struct __packed{
|
||||
uint32_t file_size;//文件长度,不包括文件名
|
||||
char name[120];
|
||||
int used; // 初始值为0xffffffff,每使用一次添加一个0
|
||||
@@ -35,8 +35,8 @@ int flash_operate_end(void);
|
||||
|
||||
|
||||
|
||||
__packed
|
||||
typedef struct{
|
||||
|
||||
typedef struct __packed{
|
||||
uint32_t size;
|
||||
char pack_time[20];
|
||||
uint32_t crc;
|
||||
@@ -58,8 +58,8 @@ int flash_updata_app(uint8_t *rom,uint32_t size);
|
||||
|
||||
|
||||
// 系统参数
|
||||
__packed
|
||||
typedef struct{
|
||||
|
||||
typedef struct __packed{
|
||||
char pack_time[20];// 打包时间
|
||||
char host_if[8];// 主机接口
|
||||
char device_type[12];// 设备类型 ,批检仪还是赋码仪
|
||||
@@ -83,8 +83,8 @@ int flash_save_param(sys_param_def *par);
|
||||
const sys_param_def *sys_param(void);
|
||||
|
||||
|
||||
__packed
|
||||
typedef struct{
|
||||
|
||||
typedef struct __packed{
|
||||
uint32_t max;
|
||||
uint32_t min;
|
||||
uint32_t err;
|
||||
@@ -92,8 +92,8 @@ typedef struct{
|
||||
|
||||
|
||||
|
||||
__packed
|
||||
typedef struct
|
||||
|
||||
typedef struct __packed
|
||||
{
|
||||
uint32_t taskid;
|
||||
uint32_t taskindex;
|
||||
@@ -103,13 +103,13 @@ typedef struct
|
||||
}scheme_task_def;
|
||||
|
||||
// 方案参数
|
||||
__packed
|
||||
typedef struct{
|
||||
|
||||
typedef struct __packed{
|
||||
uint8_t slave_data[2048];
|
||||
uint32_t plan_id;
|
||||
uint32_t timeout_m;
|
||||
uint32_t task_num;
|
||||
scheme_task_def task[0];
|
||||
scheme_task_def task[];
|
||||
}scheme_def;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user