add tos_slist.h, rename tos.h to tos_k.h

This commit is contained in:
daishengdong
2020-01-03 17:25:38 +08:00
parent af07f199d9
commit c9556307df
268 changed files with 900 additions and 742 deletions

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
#define USE_ESP8266

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
#include "tos_hal.h"
#include "ff.h"
@@ -51,7 +51,7 @@ void application_entry(void *arg)
printf("read error: %d\n", res);
}
f_close(&file);
f_sync(&file);
}

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
#include "tos_hal.h"
#include "ff.h"
#include "tos_vfs.h"

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
#include "lvgl/lvgl.h"
#include "tft.h"
#include "touchpad.h"
@@ -22,7 +22,7 @@ void application_entry(void *arg)
lv_init();
tft_init();
touchpad_init();
//benchmark_create();
//sysmon_create();
//terminal_create();
@@ -37,7 +37,7 @@ void application_entry(void *arg)
{
tos_task_delay(5);
lv_task_handler();
}
}
}

View File

@@ -124,11 +124,9 @@ void nimble_scan_item_display(nimble_scan_item_t *item)
void nimble_scan_info_list_display(void)
{
k_list_t *curr;
nimble_scan_item_t *iter;
TOS_LIST_FOR_EACH(curr, &scan_entry) {
iter = TOS_LIST_ENTRY(curr, nimble_scan_item_t, list);
TOS_LIST_FOR_EACH_ENTRY(iter, nimble_scan_item_t, list, &scan_entry) {
nimble_scan_item_display(iter);
}
}
@@ -140,11 +138,9 @@ nimble_scan_item_t *nimble_scan_item_alloc(void)
int nimble_scan_item_is_exist(ble_addr_t *addr)
{
k_list_t *curr;
nimble_scan_item_t *iter;
TOS_LIST_FOR_EACH(curr, &free_entry) {
iter = TOS_LIST_ENTRY(curr, nimble_scan_item_t, list);
TOS_LIST_FOR_EACH_ENTRY(iter, nimble_scan_item_t, list, &free_entry) {
if (ble_addr_cmp(&addr, &iter->addr) == 0) {
return K_TRUE;
}

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
/* 用户根据自己的底层通信链路来配置此宏
* 如果是基于以太网lwip的链路这里应该定义 USE_LWIP
@@ -30,7 +30,7 @@ void application_entry(void *arg)
esp8266_sal_init(HAL_UART_PORT_0);
esp8266_join_ap("SheldonDai", "srnr6x9xbhmb0");
#endif
#ifdef USE_NB_BC35
extern int bc35_28_95_sal_init(hal_uart_port_t uart_port);
bc35_28_95_sal_init(HAL_UART_PORT_0);

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
/* 用户根据自己的底层通信链路来配置此宏
* 如果是基于以太网lwip的链路这里应该定义 USE_LWIP

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
/* 用户根据自己的底层通信链路来配置此宏
* 如果是基于以太网lwip的链路这里应该定义 USE_LWIP

View File

@@ -13,7 +13,7 @@
*
*/
#include "tos.h"
#include "tos_k.h"
#include "qcloud.h"
static void response_message_callback(void *msg, void *context)

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
/* 用户根据自己的底层通信链路来配置此宏
* 如果是基于以太网lwip的链路这里应该定义 USE_LWIP

View File

@@ -14,7 +14,7 @@
*/
#include "qcloud.h"
#include "tos.h"
#include "tos_k.h"
#if (QCLOUD_CFG_EVENT_EN > 0u)

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
/* 用户根据自己的底层通信链路来配置此宏
* 如果是基于以太网lwip的链路这里应该定义 USE_LWIP
@@ -30,7 +30,7 @@ void application_entry(void *arg)
esp8266_sal_init(HAL_UART_PORT_0);
esp8266_join_ap("SheldonDai", "srnr6x9xbhmb0");
#endif
#ifdef USE_NB_BC35
extern int bc35_28_95_sal_init(hal_uart_port_t uart_port);
bc35_28_95_sal_init(HAL_UART_PORT_0);

View File

@@ -20,7 +20,7 @@
#include <string.h>
#include <signal.h>
#include "tos.h"
#include "tos_k.h"
#include "qcloud.h"

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
/* 用户根据自己的底层通信链路来配置此宏
* 如果是基于以太网lwip的链路这里应该定义 USE_LWIP

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
#include "esp8266_tencent_firmware.h"
#include "tencent_firmware_module_wrapper.h"