我知道这个话题已被打死,但在查看了很多代码示例后,我似乎无法找到这种结构的任何错误.它直接来自公司的司机.让我知道你的想法:
struct Descriptor
{
__evenaccess uint32_t status;
#if __LIT
/* Little endian */
__evenaccess uint16_t size;
__evenaccess uint16_t bufsize;
#else
/* Big endian */
__evenaccess uint16_t bufsize;
__evenaccess uint16_t size;
#endif
int8_t *buf_p;
struct Descriptor *next;
};
typedef struct Descriptor ethfifo;
Run Code Online (Sandbox Code Playgroud)
由于它无法识别结构我也得到了很多这些:错误:'ethfifo'没有名为'status'的成员
谢谢!