feat(esp8266): Move the define os STATUS to esp_sta.h

This commit is contained in:
Wu Jian Gang
2018-05-24 15:49:56 +08:00
parent 3ce6c4cc98
commit 82474c8f63
2 changed files with 8 additions and 9 deletions

View File

@ -63,15 +63,6 @@ typedef double real64;
#define __le16 u16
/* probably should not put STATUS here */
typedef enum {
OK = 0,
FAIL,
PENDING,
BUSY,
CANCEL,
} STATUS;
#define BIT(nr) (1UL << (nr))
#define REG_WRITE(_r, _v) (*(volatile uint32 *)(_r)) = (_v)

View File

@ -202,6 +202,14 @@ struct bss_info {
uint32_t reserved:28; /**< bit: 4..31 reserved */
};
typedef enum {
OK = 0,
FAIL,
PENDING,
BUSY,
CANCEL,
} STATUS;
/**
* @brief Callback function for wifi_station_scan.
*