mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-18 03:30:36 +08:00
feat: Don't use esp_common.h in SDK
This commit is contained in:
@ -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
|
||||||
|
@ -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"
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
@ -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"
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
@ -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:
|
||||||
|
@ -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 {
|
||||||
|
@ -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"
|
||||||
|
@ -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;
|
||||||
|
@ -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"
|
||||||
|
Reference in New Issue
Block a user