mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 07:00:05 +08:00
feat(esp8266): Don't use LOCAL in SDK
This commit is contained in:
@ -29,7 +29,7 @@
|
||||
#define MQTT_CLIENT_THREAD_STACK_WORDS 2048
|
||||
#define MQTT_CLIENT_THREAD_PRIO 8
|
||||
|
||||
LOCAL xTaskHandle mqttc_client_handle;
|
||||
static xTaskHandle mqttc_client_handle;
|
||||
|
||||
static void messageArrived(MessageData* data)
|
||||
{
|
||||
|
@ -52,14 +52,14 @@ Fragment size range 2048~8192
|
||||
/* receive length */
|
||||
#define OPENSSL_CLIENT_RECV_BUF_LEN 1024
|
||||
|
||||
LOCAL xTaskHandle openssl_handle;
|
||||
static xTaskHandle openssl_handle;
|
||||
|
||||
LOCAL char send_data[] = OPENSSL_CLIENT_REQUEST;
|
||||
LOCAL int send_bytes = sizeof(send_data);
|
||||
static char send_data[] = OPENSSL_CLIENT_REQUEST;
|
||||
static int send_bytes = sizeof(send_data);
|
||||
|
||||
LOCAL char recv_buf[OPENSSL_CLIENT_RECV_BUF_LEN];
|
||||
static char recv_buf[OPENSSL_CLIENT_RECV_BUF_LEN];
|
||||
|
||||
LOCAL void openssl_client_thread(void* p)
|
||||
static void openssl_client_thread(void* p)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -34,14 +34,14 @@
|
||||
|
||||
#define OPENSSL_DEMO_RECV_BUF_LEN 1024
|
||||
|
||||
LOCAL xTaskHandle openssl_handle;
|
||||
static xTaskHandle openssl_handle;
|
||||
|
||||
LOCAL char send_data[] = OPENSSL_DEMO_REQUEST;
|
||||
LOCAL int send_bytes = sizeof(send_data);
|
||||
static char send_data[] = OPENSSL_DEMO_REQUEST;
|
||||
static int send_bytes = sizeof(send_data);
|
||||
|
||||
LOCAL char recv_buf[OPENSSL_DEMO_RECV_BUF_LEN];
|
||||
static char recv_buf[OPENSSL_DEMO_RECV_BUF_LEN];
|
||||
|
||||
LOCAL void openssl_demo_thread(void *p)
|
||||
static void openssl_demo_thread(void *p)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -52,14 +52,14 @@ Fragment size range 2048~8192
|
||||
/* receive length */
|
||||
#define OPENSSL_SERVER_RECV_BUF_LEN 1024
|
||||
|
||||
LOCAL xTaskHandle openssl_handle;
|
||||
static xTaskHandle openssl_handle;
|
||||
|
||||
LOCAL char send_data[] = OPENSSL_SERVER_REQUEST;
|
||||
LOCAL int send_bytes = sizeof(send_data);
|
||||
static char send_data[] = OPENSSL_SERVER_REQUEST;
|
||||
static int send_bytes = sizeof(send_data);
|
||||
|
||||
LOCAL char recv_buf[OPENSSL_SERVER_RECV_BUF_LEN];
|
||||
static char recv_buf[OPENSSL_SERVER_RECV_BUF_LEN];
|
||||
|
||||
LOCAL void openssl_server_thread(void* p)
|
||||
static void openssl_server_thread(void* p)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -21,9 +21,9 @@ enum {
|
||||
|
||||
#define SSC_CMD_N (CMD_END + 1)
|
||||
|
||||
LOCAL void spiffs_test_init(void);
|
||||
static void spiffs_test_init(void);
|
||||
|
||||
LOCAL ssc_cmd_t sscCmdSet[SSC_CMD_N] = {
|
||||
static ssc_cmd_t sscCmdSet[SSC_CMD_N] = {
|
||||
{"fs", CMD_T_SYNC, CMD_SPIFFS, spiffs_test_init, NULL},
|
||||
{"", CMD_T_ASYNC, CMD_END, NULL, NULL}
|
||||
};
|
||||
|
@ -27,9 +27,9 @@
|
||||
|
||||
#define DEFAULT_LAN_PORT 12476
|
||||
|
||||
LOCAL esp_udp ssdp_udp;
|
||||
LOCAL struct espconn pssdpudpconn;
|
||||
LOCAL os_timer_t ssdp_time_serv;
|
||||
static esp_udp ssdp_udp;
|
||||
static struct espconn pssdpudpconn;
|
||||
static os_timer_t ssdp_time_serv;
|
||||
|
||||
uint8 lan_buf[200];
|
||||
uint16 lan_buf_len;
|
||||
@ -43,7 +43,7 @@ const airkiss_config_t akconf =
|
||||
0,
|
||||
};
|
||||
|
||||
LOCAL void airkiss_wifilan_time_callback(void)
|
||||
static void airkiss_wifilan_time_callback(void)
|
||||
{
|
||||
uint16 i;
|
||||
airkiss_lan_ret_t ret;
|
||||
@ -74,7 +74,7 @@ LOCAL void airkiss_wifilan_time_callback(void)
|
||||
os_printf("Finish send notify!\n");
|
||||
}
|
||||
|
||||
LOCAL void airkiss_wifilan_recv_callbk(void *arg, char *pdata, unsigned short len)
|
||||
static void airkiss_wifilan_recv_callbk(void *arg, char *pdata, unsigned short len)
|
||||
{
|
||||
uint16 i;
|
||||
remot_info* pcon_info = NULL;
|
||||
|
@ -61,7 +61,7 @@ uint32 user_rf_cal_sector_set(void)
|
||||
return rf_cal_sec;
|
||||
}
|
||||
|
||||
LOCAL void wait_for_connection_ready(uint8 flag)
|
||||
static void wait_for_connection_ready(uint8 flag)
|
||||
{
|
||||
os_timer_disarm(&timer);
|
||||
if(wifi_station_connected()){
|
||||
@ -73,13 +73,13 @@ LOCAL void wait_for_connection_ready(uint8 flag)
|
||||
}
|
||||
}
|
||||
|
||||
LOCAL void on_wifi_connect(){
|
||||
static void on_wifi_connect(){
|
||||
os_timer_disarm(&timer);
|
||||
os_timer_setfn(&timer, (os_timer_func_t *)wait_for_connection_ready, NULL);
|
||||
os_timer_arm(&timer, 100, 0);
|
||||
}
|
||||
|
||||
LOCAL void on_wifi_disconnect(uint8_t reason){
|
||||
static void on_wifi_disconnect(uint8_t reason){
|
||||
os_printf("disconnect %d\n", reason);
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "freertos/task.h"
|
||||
#include "freertos/queue.h"
|
||||
|
||||
LOCAL void user_wps_status_cb(int status)
|
||||
static void user_wps_status_cb(int status)
|
||||
{
|
||||
printf("scan status %d\n", status);
|
||||
switch (status) {
|
||||
@ -31,7 +31,7 @@ LOCAL void user_wps_status_cb(int status)
|
||||
}
|
||||
}
|
||||
|
||||
LOCAL void user_wps_start(void)
|
||||
static void user_wps_start(void)
|
||||
{
|
||||
wifi_wps_disable();
|
||||
wifi_wps_enable(WPS_TYPE_PBC);
|
||||
@ -87,7 +87,7 @@ uint32 user_rf_cal_sector_set(void)
|
||||
|
||||
return rf_cal_sec;
|
||||
}
|
||||
LOCAL void wps_task(void *pvParameters)
|
||||
static void wps_task(void *pvParameters)
|
||||
{
|
||||
wifi_set_opmode(STATION_MODE);
|
||||
user_wps_start();
|
||||
|
Reference in New Issue
Block a user