feat: Don't use esp_common.h in SDK

This commit is contained in:
Wu Jian Gang
2018-05-24 20:59:16 +08:00
parent 092ecbfdd5
commit 1cd5a36bdf
10 changed files with 26 additions and 12 deletions

View File

@ -27,6 +27,8 @@
#include <stdint.h> #include <stdint.h>
#include "lwip/ip_addr.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -16,7 +16,8 @@
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>
#include "esp_common.h" #include "esp_misc.h"
#include "sdkconfig.h" #include "sdkconfig.h"
#include "lwip/inet.h" #include "lwip/inet.h"
#include "lwip/err.h" #include "lwip/err.h"

View File

@ -6,7 +6,10 @@
CONDITIONS OF ANY KIND, either express or implied. CONDITIONS OF ANY KIND, either express or implied.
*/ */
#include "esp_common.h" #include <stdio.h>
#include <stdint.h>
#include <esp_system.h>
/****************************************************************************** /******************************************************************************
* FunctionName : user_rf_cal_sector_set * FunctionName : user_rf_cal_sector_set

View File

@ -7,10 +7,13 @@
CONDITIONS OF ANY KIND, either express or implied. CONDITIONS OF ANY KIND, either express or implied.
*/ */
#include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <strings.h> #include <strings.h>
#include "esp_common.h" #include "esp_sta.h"
#include "esp_system.h"
#include "user_config.h" #include "user_config.h"
/****************************************************************************** /******************************************************************************

View File

@ -7,10 +7,14 @@
CONDITIONS OF ANY KIND, either express or implied. CONDITIONS OF ANY KIND, either express or implied.
*/ */
#include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "esp_common.h" #include "esp_sta.h"
#include "esp_system.h"
#include "esp_wifi.h"
#include "user_config.h" #include "user_config.h"
/****************************************************************************** /******************************************************************************

View File

@ -72,10 +72,10 @@ void spiffs_fs1_init(void)
* Parameters : none * Parameters : none
* Returns : rf cal sector * Returns : rf cal sector
*******************************************************************************/ *******************************************************************************/
uint32 user_rf_cal_sector_set(void) uint32_t user_rf_cal_sector_set(void)
{ {
flash_size_map size_map = system_get_flash_size_map(); flash_size_map size_map = system_get_flash_size_map();
uint32 rf_cal_sec = 0; uint32_t rf_cal_sec = 0;
switch (size_map) { switch (size_map) {
case FLASH_SIZE_4M_MAP_256_256: case FLASH_SIZE_4M_MAP_256_256:

View File

@ -16,7 +16,6 @@
//#include <dirent.h> //#include <dirent.h>
#include <unistd.h> #include <unistd.h>
#include "esp_common.h"
#include "testrunner.h" #include "testrunner.h"
static struct { static struct {

View File

@ -7,15 +7,13 @@
CONDITIONS OF ANY KIND, either express or implied. CONDITIONS OF ANY KIND, either express or implied.
*/ */
#include "esp_common.h"
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/task.h" #include "freertos/task.h"
#include "lwip/sockets.h" #include "lwip/sockets.h"
#include "lwip/dns.h" #include "lwip/dns.h"
#include "lwip/netdb.h" #include "lwip/netdb.h"
#include "espconn.h"
#include "airkiss.h" #include "airkiss.h"
#define server_ip "192.168.101.142" #define server_ip "192.168.101.142"

View File

@ -7,7 +7,12 @@
CONDITIONS OF ANY KIND, either express or implied. CONDITIONS OF ANY KIND, either express or implied.
*/ */
#include "esp_common.h" #include <stdint.h>
#include <stddef.h>
#include "esp_system.h"
#include "esp_timer.h"
#include "user_config.h" #include "user_config.h"
static os_timer_t timer; static os_timer_t timer;

View File

@ -12,7 +12,6 @@
#include "lwip/ip_addr.h" #include "lwip/ip_addr.h"
#include "esp_libc.h" #include "esp_libc.h"
#include "esp_misc.h" #include "esp_misc.h"
#include "esp_common.h"
#include "esp_wifi.h" #include "esp_wifi.h"
#include "esp_sta.h" #include "esp_sta.h"
#include "esp_softap.h" #include "esp_softap.h"