红联Linux门户
Linux帮助

帮忙看下代码

发布时间:2012-07-30 20:38:40来源:红联作者:
typedef struct {
#define WRITE_EN(x) (x)
unsigned char write_en;
#define WRITE_DIS(x) (x)
unsigned char write_dis;
#define WRITE_STS(x) (x)
unsigned char write_sts;
#define READ_ID(x) (x)
unsigned char read_id;
#define READ_STS(x) (x)
unsigned char read_sts;
#define READ_DATA(x) (x)
unsigned char read_data;
#define READ_FAST(x) (x)
unsigned char read_fast;
#define ERASE_SECT(x) (x)
unsigned char erase_sect;
#define ERASE_BLOCK(x) (x)
unsigned char erase_block;
} sf_cmd_tbl_t;
它又该怎么初始化,求高人指导。
文章评论

共有 3 条评论

  1. nanst 于 2012-08-24 14:46:40发表:

    没遇到过,学习一下

  2. nanst 于 2012-08-24 14:46:36发表:

    没遇到过,学习一下

  3. lanlinux2012 于 2012-07-31 17:41:52发表:

    路过