Ai-Thinker-Open_RTL8710BX_A.../Living_SDK/include/hal/base.h

30 lines
433 B
C
Raw Normal View History

2020-06-18 12:06:52 +00:00
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef HAL_BASE_H
#define HAL_BASE_H
#include <aos/aos.h>
/*
* HAL common error code
*/
enum {
HAL_ERR_ARG = -4096,
HAL_ERR_CAP,
};
/*
* HAL Module define
*/
typedef struct {
dlist_t list;
int magic;
const char *name;
void *priv_dev; /* Driver may want to describe it */
} hal_module_base_t;
#endif /* HAL_BASE_H */