implement esp_deep_sleep, fix build issues

This commit is contained in:
Ivan Grokhotkov
2016-11-21 23:05:23 +08:00
parent cf6fc7c741
commit df6edb50e9
17 changed files with 222 additions and 108 deletions

View File

@@ -17,6 +17,7 @@
#include "esp_types.h"
#include "esp_attr.h"
#include "ets_sys.h"
#ifdef __cplusplus
extern "C" {
@@ -161,14 +162,6 @@ typedef struct {
int received;
} UartDevice;
typedef enum {
OK = 0,
FAIL,
PENDING,
BUSY,
CANCEL,
} STATUS;
/**
* @brief Init uart device struct value and reset uart0/uart1 rx.
* Please do not call this function in SDK.