From 3fd1d77373827f43f57e7e92f9dba5243630fbe5 Mon Sep 17 00:00:00 2001 From: supowang Date: Fri, 17 Apr 2020 15:49:17 +0800 Subject: [PATCH] add mqttclient examples for EVB_LN882x add mqttclient examples for EVB_LN882x --- board/EVB_LN882x/BSP/Src/mqtt_task.c | 64 + .../EVB_LN882x/BSP/Src/mqttclient_examples.c | 200 ++ .../KEIL/mqtt_client/JLinkSettings.ini | 39 + .../KEIL/mqtt_client/TencentOS_tiny.uvoptx | 2341 +++++++++++++++++ .../KEIL/mqtt_client/TencentOS_tiny.uvprojx | 1419 ++++++++++ .../KEIL/mqtt_client/after_build_ln882x.bat | 8 + .../KEIL/mqtt_client/firmware_XIP_ln882x.sct | 78 + .../KEIL/mqtt_client/flash_partition_table.h | 32 + board/EVB_LN882x/TOS-CONFIG/mqtt_config.h | 47 + 9 files changed, 4228 insertions(+) create mode 100644 board/EVB_LN882x/BSP/Src/mqtt_task.c create mode 100644 board/EVB_LN882x/BSP/Src/mqttclient_examples.c create mode 100644 board/EVB_LN882x/KEIL/mqtt_client/JLinkSettings.ini create mode 100644 board/EVB_LN882x/KEIL/mqtt_client/TencentOS_tiny.uvoptx create mode 100644 board/EVB_LN882x/KEIL/mqtt_client/TencentOS_tiny.uvprojx create mode 100644 board/EVB_LN882x/KEIL/mqtt_client/after_build_ln882x.bat create mode 100644 board/EVB_LN882x/KEIL/mqtt_client/firmware_XIP_ln882x.sct create mode 100644 board/EVB_LN882x/KEIL/mqtt_client/flash_partition_table.h create mode 100644 board/EVB_LN882x/TOS-CONFIG/mqtt_config.h diff --git a/board/EVB_LN882x/BSP/Src/mqtt_task.c b/board/EVB_LN882x/BSP/Src/mqtt_task.c new file mode 100644 index 00000000..4c0461c8 --- /dev/null +++ b/board/EVB_LN882x/BSP/Src/mqtt_task.c @@ -0,0 +1,64 @@ +#include "lwip/api.h" +#include +#include +#include +#include + +#include "mqttclient.h" + +static void tos_topic_handler(void* client, message_data_t* msg) +{ + (void) client; + LOG_I("-----------------------------------------------------------------------------------"); + LOG_I("%s:%d %s()...\ntopic: %s, qos: %d. \nmessage:\n\t%s\n", __FILE__, __LINE__, __FUNCTION__, + msg->topic_name, msg->message->qos, (char*)msg->message->payload); + LOG_I("-----------------------------------------------------------------------------------\n"); +} + + +mqtt_client_t client; +client_init_params_t init_params; + +extern void TCPIP_Init(void); + +void mqtt_iothub(void) +{ + int error; + char buf[80] = { 0 }; + mqtt_message_t msg; + memset(&msg, 0, sizeof(msg)); + + sprintf(buf, "welcome to mqttclient, this is a publish test..."); + + init_params.read_buf_size = 1024; + init_params.write_buf_size = 1024; + init_params.connect_params.network_params.addr = "iotcloud-mqtt.gz.tencentdevices.com"; + init_params.connect_params.network_params.port = "1883"; + init_params.connect_params.user_name = "RUAP1R610Vsupowang;12010126;FTDC9;1623108655"; + init_params.connect_params.password = "29e68d809ac4ac0e41bf30cc77cd377d30e7af03f3c76b0c50fa27a2c59e174b;hmacsha256"; + init_params.connect_params.client_id = "RUAP1R610Vsupowang"; + init_params.connect_params.clean_session = 1; + + log_init(); + + mqtt_init(&client, &init_params); + + error = mqtt_connect(&client); + + LOG_D("mqtt connect error is %#x", error); + + mqtt_subscribe(&client, "RUAP1R610V/supowang/data", QOS0, tos_topic_handler); + + memset(&msg, 0, sizeof(msg)); + + for (;;) { + + msg.qos = QOS0; + msg.payload = (void *) buf; + + mqtt_publish(&client, "RUAP1R610V/supowang/data", &msg); + + tos_task_delay(4000); + } + +} diff --git a/board/EVB_LN882x/BSP/Src/mqttclient_examples.c b/board/EVB_LN882x/BSP/Src/mqttclient_examples.c new file mode 100644 index 00000000..8ede3cbc --- /dev/null +++ b/board/EVB_LN882x/BSP/Src/mqttclient_examples.c @@ -0,0 +1,200 @@ +#include "cmsis_os.h" +#include "osal/osal.h" +#include "utils/debug/log.h" +#include "utils/debug/art_assert.h" +#include "utils/art_string.h" +#include "wifi/wifi.h" +#include "ping/ping.h" +#include "netif/ethernetif.h" +#include "wifi_manager/wifi_manager.h" +#include "lwip/tcpip.h" +#include "drv/drv_adc_measure.h" +#include "utils/system_parameter.h" +#include "hal/hal_adc.h" + +static OS_Thread_t g_temp_cal_thread; +#define TEMP_APP_TASK_STACK_SIZE 4*256 //Byte + +volatile uint8_t dhcp_get_ip = 0; + +void wifi_init_sta(void) +{ + uint8_t macaddr[6] = {0}, macaddr_default[6] = {0}; + wifi_config_t wifi_config = { + .sta = { + .ssid = "Supowang", + .password = "13975426138", + 0, + }, + }; + + wifi_config_t temp_config = {0}; + + wifi_init_type_t init_param = { + .wifi_mode = WIFI_MODE_STATION, + .sta_ps_mode = WIFI_NO_POWERSAVE, + #if 1 + .dhcp_mode = WLAN_DHCP_CLIENT, + #else + .dhcp_mode = WLAN_STATIC_IP, + .local_ip_addr = "192.168.1.110", + .net_mask = "255.255.255.0", + .gateway_ip_addr = "192.168.1.1", + #endif + //In station mode, define the length of the AP list scanned. + .scanned_ap_list_size = SCANNED_AP_LIST_SIZE, + }; + + + //Set wifi mode + wifi_set_mode(init_param.wifi_mode); + + //Check mac address + system_parameter_get_wifi_macaddr_default(STATION_IF, macaddr_default); + wifi_get_macaddr(STATION_IF, macaddr); + if(is_valid_mac((const char *)macaddr) && memcmp(macaddr, macaddr_default, 6) != 0){ + //If there is a valid MAC in flash, use it + wifi_set_macaddr_current(STATION_IF, macaddr); + }else{ + //generate random macaddr + generate_mac_randomly(macaddr); + wifi_set_macaddr(STATION_IF, macaddr); + } + + //Check config + wifi_get_config(STATION_IF, &temp_config); + if(strlen((const char *)temp_config.sta.ssid) > 0){ + //If there is a valid config in flash, use it; + wifi_set_config_current(STATION_IF, &temp_config); + }else{ + //else, use the prev wifi_config and save it to flash. + wifi_set_config(STATION_IF, &wifi_config); + } + + //Startup WiFi. + if(!wifi_start(&init_param)){//WIFI_MAX_POWERSAVE + LOG(LOG_LVL_ERROR, "[%s, %d]wifi_start() fail.\r\n", __func__, __LINE__); + } +} + +void wifi_init_ap(void) +{ + uint8_t macaddr[6] = {0}, macaddr_default[6] = {0}; + wifi_config_t wifi_config = { + .ap = { + .ssid = "Supowang", + .ssid_len = strlen("Supowang"), + .password = "Supowang", + .channel = 1, + .authmode = WIFI_AUTH_OPEN, + .ssid_hidden = 0, + .max_connection = 4, + .beacon_interval = 100, + .reserved = 0, + }, + }; + + wifi_config_t temp_config = {0}; + + wifi_init_type_t init_param = { + .wifi_mode = WIFI_MODE_AP, + .sta_ps_mode = WIFI_NO_POWERSAVE, + .dhcp_mode = WLAN_DHCP_SERVER, + }; + + //Set wifi mode + wifi_set_mode(init_param.wifi_mode); + + //Check mac address + system_parameter_get_wifi_macaddr_default(SOFT_AP_IF, macaddr_default); + wifi_get_macaddr(SOFT_AP_IF, macaddr); + if(is_valid_mac((const char *)macaddr) && memcmp(macaddr, macaddr_default, 6) != 0){ + //If there is a valid MAC in flash, use it + wifi_set_macaddr_current(SOFT_AP_IF, macaddr); + }else{ + //generate random macaddr + generate_mac_randomly(macaddr); + wifi_set_macaddr(SOFT_AP_IF, macaddr); + } + + //Check config + wifi_get_config(SOFT_AP_IF, &temp_config); + if(strlen((const char *)temp_config.sta.ssid) > 0){ + //If there is a valid config in flash, use it; + wifi_set_config_current(SOFT_AP_IF, &temp_config); + }else{ + //else, use the prev wifi_config and save it to flash. + wifi_set_config(SOFT_AP_IF, &wifi_config); + } + + //Startup WiFi. + if(!wifi_start(&init_param)){ + LOG(LOG_LVL_ERROR, "[%s, %d]wifi_start() fail.\r\n", __func__, __LINE__); + } +} + + +void temp_cal_app_task_entry(void *params) +{ + drv_adc_init(); + OS_MsDelay(1); + wifi_temp_cal_init(drv_adc_read(ADC_CHAN_0)); + + while(1) + { + OS_MsDelay(1); + wifi_do_temp_cal_period(drv_adc_read(ADC_CHAN_0)); + OS_MsDelay(1000); + } +} + +void wifi_event_sta_got_ip_cb(wifi_msg_t * msg) +{ + dhcp_get_ip = 1; +}; + +extern void mqtt_iothub(void); +void application_entry(void *arg) +{ + //wifi chip temperature calibration. + if(OS_OK != OS_ThreadCreate(&g_temp_cal_thread, "TempAPP", temp_cal_app_task_entry, NULL, OS_PRIORITY_BELOW_NORMAL, TEMP_APP_TASK_STACK_SIZE)) { + ART_ASSERT(1); + } + + reg_wifi_msg_callbcak(wifi_manager_get_handle(), WIFI_MSG_ID_STA_DHCP_GOT_IP,wifi_event_sta_got_ip_cb); + + wifi_mode_enum_t wifi_mode = WIFI_MODE_STATION; + + tcpip_ip_info_t ip_info = {0}; + wifi_interface_enum_t if_index; + + if(wifi_mode == WIFI_MODE_STATION){ + if_index = STATION_IF; + wifi_init_sta(); + }else if(wifi_mode == WIFI_MODE_AP){ + if_index = SOFT_AP_IF; + wifi_init_ap(); + }else if(wifi_mode == WIFI_MODE_MONITOR){ + if_index = MONITOR_IF; + }else{ + LOG(LOG_LVL_ERROR, "wifi interface error!\r\n"); + } + + if((wifi_mode == WIFI_MODE_STATION)||(wifi_mode == WIFI_MODE_AP)) { + //Wait for network link up + while(LINK_UP != ethernetif_get_link_state()){ + OS_MsDelay(1000); + } + + ethernetif_get_ip_info(if_index, &ip_info); + } + + while(!dhcp_get_ip){ + OS_MsDelay(1000); + }; + + mqtt_iothub(); +} + + + diff --git a/board/EVB_LN882x/KEIL/mqtt_client/JLinkSettings.ini b/board/EVB_LN882x/KEIL/mqtt_client/JLinkSettings.ini new file mode 100644 index 00000000..5d2c4261 --- /dev/null +++ b/board/EVB_LN882x/KEIL/mqtt_client/JLinkSettings.ini @@ -0,0 +1,39 @@ +[BREAKPOINTS] +ForceImpTypeAny = 0 +ShowInfoWin = 1 +EnableFlashBP = 2 +BPDuringExecution = 0 +[CFI] +CFISize = 0x00 +CFIAddr = 0x00 +[CPU] +MonModeVTableAddr = 0xFFFFFFFF +MonModeDebug = 0 +MaxNumAPs = 0 +LowPowerHandlingMode = 0 +OverrideMemMap = 0 +AllowSimulation = 1 +ScriptFile="" +[FLASH] +CacheExcludeSize = 0x00 +CacheExcludeAddr = 0x00 +MinNumBytesFlashDL = 0 +SkipProgOnCRCMatch = 1 +VerifyDownload = 1 +AllowCaching = 1 +EnableFlashDL = 2 +Override = 1 +Device="Cortex-M4" +[GENERAL] +WorkRAMSize = 0x00 +WorkRAMAddr = 0x00 +RAMUsageLimit = 0x00 +[SWO] +SWOLogFile="" +[MEM] +RdOverrideOrMask = 0x00 +RdOverrideAndMask = 0xFFFFFFFF +RdOverrideAddr = 0xFFFFFFFF +WrOverrideOrMask = 0x00 +WrOverrideAndMask = 0xFFFFFFFF +WrOverrideAddr = 0xFFFFFFFF diff --git a/board/EVB_LN882x/KEIL/mqtt_client/TencentOS_tiny.uvoptx b/board/EVB_LN882x/KEIL/mqtt_client/TencentOS_tiny.uvoptx new file mode 100644 index 00000000..162b6145 --- /dev/null +++ b/board/EVB_LN882x/KEIL/mqtt_client/TencentOS_tiny.uvoptx @@ -0,0 +1,2341 @@ + + + + 1.0 + +
### uVision Project, (C) Keil Software
+ + + *.c + *.s*; *.src; *.a* + *.obj; *.o + *.lib + *.txt; *.h; *.inc + *.plm + *.cpp + 0 + + + + 0 + 0 + + + + TencentOS_tiny + 0x4 + ARM-ADS + + 12000000 + + 1 + 1 + 0 + 1 + 0 + + + 1 + 65535 + 0 + 0 + 0 + + + 79 + 66 + 8 + .\Listings\ + + + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + + + 1 + 0 + 1 + + 7 + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 0 + 0 + 4 + + + + + + + + + + + Segger\JL2CM3.dll + + + + 0 + DLGUARM + + + + 0 + ARMRTXEVENTFLAGS + -L70 -Z18 -C0 -M0 -T1 + + + 0 + DLGTARM + (1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(1012=-1,-1,-1,-1,0) + + + 0 + ARMDBGFLAGS + + + + 0 + JL2CM3 + -U174402503 -O78 -S2 -ZTIFSpeedSel5000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST8 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(4) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC1000 -FN1 -FF0LN88x_ExFLASH_2MB.FLM -FS010000000 -FL0200000 -FP0($$Device:LN8810$Flash\LN88x_ExFLASH_2MB.FLM) + + + 0 + UL2CM3 + UL2CM3(-S0 -C0 -P0 ) -FC1000 -FD20000000 + + + 0 + ST-LINKIII-KEIL_SWO + -U-O142 -O2254 -S0 -C0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F10x_512 -FS08000000 -FL080000 -FP0($$Device:STM32F103VE$Flash\STM32F10x_512.FLM) + + + + + + 0 + 1 + g_prefered_bssid,0x0A + + + 1 + 1 + g_mac + + + 2 + 1 + g_mac_stats + + + 3 + 1 + tx_iq_comp,0x10 + + + 4 + 1 + tx_dc_comp + + + 5 + 1 + phy_reg_val_table_1,0x10 + + + + + 1 + 0 + data + 0 + + + + + 2 + 0 + g_pkt_mem_pool + 0 + + + + 0 + + + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + 0 + 0 + 0 + + + + + + + + + + 1 + 0 + 0 + 2 + 10000000 + + + + + + Application/MDK-ARM + 0 + 0 + 0 + 0 + + 1 + 1 + 2 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\cpu\ARM_CM4F\ln88xx\startup_ln882x.S + startup_ln882x.S + 0 + 0 + + + 1 + 2 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\cpu\ARM_CM4F\ln88xx\system_ln88xx.c + system_ln88xx.c + 0 + 0 + + + + + Application/User + 0 + 0 + 0 + 0 + + 2 + 3 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\main.c + main.c + 0 + 0 + + + + + examples + 1 + 0 + 0 + 0 + + 3 + 4 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\mqttclient_examples.c + mqttclient_examples.c + 0 + 0 + + + 3 + 5 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\mqtt_task.c + mqtt_task.c + 0 + 0 + + + + + Drivers/Drv + 0 + 0 + 0 + 0 + + 4 + 6 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\drv\drv_adc_measure.c + drv_adc_measure.c + 0 + 0 + + + + + Drivers/HAL + 0 + 0 + 0 + 0 + + 5 + 7 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_common.c + hal_common.c + 0 + 0 + + + 5 + 8 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_syscon.c + hal_syscon.c + 0 + 0 + + + 5 + 9 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\cache.c + cache.c + 0 + 0 + + + 5 + 10 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_dma.c + hal_dma.c + 0 + 0 + + + 5 + 11 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\qspi.c + qspi.c + 0 + 0 + + + 5 + 12 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_uart.c + hal_uart.c + 0 + 0 + + + 5 + 13 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\flash.c + flash.c + 0 + 0 + + + 5 + 14 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_trng.c + hal_trng.c + 0 + 0 + + + 5 + 15 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_timer.c + hal_timer.c + 0 + 0 + + + 5 + 16 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_sleep.c + hal_sleep.c + 0 + 0 + + + 5 + 17 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_efuse.c + hal_efuse.c + 0 + 0 + + + 5 + 18 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_adc.c + hal_adc.c + 0 + 0 + + + 5 + 19 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_interrupt.c + hal_interrupt.c + 0 + 0 + + + + + kernel + 0 + 0 + 0 + 0 + + 6 + 20 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_binary_heap.c + tos_binary_heap.c + 0 + 0 + + + 6 + 21 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_char_fifo.c + tos_char_fifo.c + 0 + 0 + + + 6 + 22 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_completion.c + tos_completion.c + 0 + 0 + + + 6 + 23 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_countdownlatch.c + tos_countdownlatch.c + 0 + 0 + + + 6 + 24 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_event.c + tos_event.c + 0 + 0 + + + 6 + 25 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_global.c + tos_global.c + 0 + 0 + + + 6 + 26 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_mmblk.c + tos_mmblk.c + 0 + 0 + + + 6 + 27 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_mmheap.c + tos_mmheap.c + 0 + 0 + + + 6 + 28 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_mutex.c + tos_mutex.c + 0 + 0 + + + 6 + 29 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_pend.c + tos_pend.c + 0 + 0 + + + 6 + 30 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_mail_queue.c + tos_mail_queue.c + 0 + 0 + + + 6 + 31 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_message_queue.c + tos_message_queue.c + 0 + 0 + + + 6 + 32 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_priority_mail_queue.c + tos_priority_mail_queue.c + 0 + 0 + + + 6 + 33 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_priority_message_queue.c + tos_priority_message_queue.c + 0 + 0 + + + 6 + 34 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_priority_queue.c + tos_priority_queue.c + 0 + 0 + + + 6 + 35 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_ring_queue.c + tos_ring_queue.c + 0 + 0 + + + 6 + 36 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_robin.c + tos_robin.c + 0 + 0 + + + 6 + 37 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_sched.c + tos_sched.c + 0 + 0 + + + 6 + 38 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_sem.c + tos_sem.c + 0 + 0 + + + 6 + 39 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_sys.c + tos_sys.c + 0 + 0 + + + 6 + 40 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_task.c + tos_task.c + 0 + 0 + + + 6 + 41 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_tick.c + tos_tick.c + 0 + 0 + + + 6 + 42 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_time.c + tos_time.c + 0 + 0 + + + 6 + 43 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_timer.c + tos_timer.c + 0 + 0 + + + + + cpu + 0 + 0 + 0 + 0 + + 7 + 44 + 1 + 0 + 0 + 0 + ..\..\..\..\arch\arm\arm-v7m\cortex-m4\armcc\port_c.c + port_c.c + 0 + 0 + + + 7 + 45 + 2 + 0 + 0 + 0 + ..\..\..\..\arch\arm\arm-v7m\cortex-m4\armcc\port_s.S + port_s.S + 0 + 0 + + + 7 + 46 + 1 + 0 + 0 + 0 + ..\..\..\..\arch\arm\arm-v7m\common\tos_cpu.c + tos_cpu.c + 0 + 0 + + + + + config + 0 + 0 + 0 + 0 + + 8 + 47 + 5 + 0 + 0 + 0 + ..\..\TOS-CONFIG\tos_config.h + tos_config.h + 0 + 0 + + + 8 + 48 + 5 + 0 + 0 + 0 + ..\..\TOS-CONFIG\proj_config.h + proj_config.h + 0 + 0 + + + + + cmsis + 0 + 0 + 0 + 0 + + 9 + 49 + 1 + 0 + 0 + 0 + ..\..\..\..\osal\cmsis_os\cmsis_os.c + cmsis_os.c + 0 + 0 + + + + + bsp + 0 + 0 + 0 + 0 + + 10 + 50 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\mcu_init.c + mcu_init.c + 0 + 0 + + + + + serial + 0 + 0 + 0 + 0 + + 11 + 51 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\serial\serial.c + serial.c + 0 + 0 + + + 11 + 52 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\serial\serial_hw.c + serial_hw.c + 0 + 0 + + + + + console + 0 + 0 + 0 + 0 + + 12 + 53 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\console\console.c + console.c + 0 + 0 + + + + + at_cmd + 0 + 0 + 0 + 0 + + 13 + 54 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\atcmd\at_cmd_basic.c + at_cmd_basic.c + 0 + 0 + + + 13 + 55 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\atcmd\at_cmd_wifi.c + at_cmd_wifi.c + 0 + 0 + + + 13 + 56 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\atcmd\at_list.c + at_list.c + 0 + 0 + + + 13 + 57 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\atcmd\at_parser.c + at_parser.c + 0 + 0 + + + 13 + 58 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\atcmd\at_string.c + at_string.c + 0 + 0 + + + 13 + 59 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\atcmd\at_task.c + at_task.c + 0 + 0 + + + + + utils + 0 + 0 + 0 + 0 + + 14 + 60 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\debug\log.c + log.c + 0 + 0 + + + 14 + 61 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\debug\art_assert.c + art_assert.c + 0 + 0 + + + 14 + 62 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\art_string.c + art_string.c + 0 + 0 + + + 14 + 63 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\art_time.c + art_time.c + 0 + 0 + + + 14 + 64 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\crc16.c + crc16.c + 0 + 0 + + + 14 + 65 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\crc32.c + crc32.c + 0 + 0 + + + 14 + 66 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\gbk_to_unicode.c + gbk_to_unicode.c + 0 + 0 + + + 14 + 67 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\md5.c + md5.c + 0 + 0 + + + 14 + 68 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\wrap_stdio.c + wrap_stdio.c + 0 + 0 + + + 14 + 69 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\fifo\fifobuf.c + fifobuf.c + 0 + 0 + + + 14 + 70 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\eeprom.c + eeprom.c + 0 + 0 + + + 14 + 71 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\system_parameter.c + system_parameter.c + 0 + 0 + + + 14 + 72 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\debug\CmBacktrace\cm_backtrace.c + cm_backtrace.c + 0 + 0 + + + + + os_adapter_inc + 0 + 0 + 0 + 0 + + 15 + 73 + 5 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\include\kernel\osal\osal.h + osal.h + 0 + 0 + + + + + os_adapter_src + 0 + 0 + 0 + 0 + + 16 + 74 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\kernel\TencentOS_Adapter\TencentOS_common.c + TencentOS_common.c + 0 + 0 + + + 16 + 75 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\kernel\TencentOS_Adapter\TencentOS_debug.c + TencentOS_debug.c + 0 + 0 + + + 16 + 76 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\kernel\TencentOS_Adapter\TencentOS_mutex.c + TencentOS_mutex.c + 0 + 0 + + + 16 + 77 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\kernel\TencentOS_Adapter\TencentOS_queue.c + TencentOS_queue.c + 0 + 0 + + + 16 + 78 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\kernel\TencentOS_Adapter\TencentOS_semaphore.c + TencentOS_semaphore.c + 0 + 0 + + + 16 + 79 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\kernel\TencentOS_Adapter\TencentOS_thread.c + TencentOS_thread.c + 0 + 0 + + + 16 + 80 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\kernel\TencentOS_Adapter\TencentOS_timer.c + TencentOS_timer.c + 0 + 0 + + + + + lib + 0 + 0 + 0 + 0 + + 17 + 81 + 4 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\lib\arm_cortexM4lf_math.lib + arm_cortexM4lf_math.lib + 0 + 0 + + + 17 + 82 + 4 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\lib\wifi_mac.lib + wifi_mac.lib + 0 + 0 + + + 17 + 83 + 4 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\lib\wifi_driver.lib + wifi_driver.lib + 0 + 0 + + + + + wifi_manager + 0 + 0 + 0 + 0 + + 18 + 84 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\wifi\wifi_manager\wifi_manager.c + wifi_manager.c + 0 + 0 + + + + + lwip_core + 0 + 0 + 0 + 0 + + 19 + 85 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\def.c + def.c + 0 + 0 + + + 19 + 86 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\dns.c + dns.c + 0 + 0 + + + 19 + 87 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\inet_chksum.c + inet_chksum.c + 0 + 0 + + + 19 + 88 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\init.c + init.c + 0 + 0 + + + 19 + 89 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ip.c + ip.c + 0 + 0 + + + 19 + 90 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\mem.c + mem.c + 0 + 0 + + + 19 + 91 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\memp.c + memp.c + 0 + 0 + + + 19 + 92 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\netif.c + netif.c + 0 + 0 + + + 19 + 93 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\pbuf.c + pbuf.c + 0 + 0 + + + 19 + 94 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\raw.c + raw.c + 0 + 0 + + + 19 + 95 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\stats.c + stats.c + 0 + 0 + + + 19 + 96 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\sys.c + sys.c + 0 + 0 + + + 19 + 97 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\tcp.c + tcp.c + 0 + 0 + + + 19 + 98 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\tcp_in.c + tcp_in.c + 0 + 0 + + + 19 + 99 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\tcp_out.c + tcp_out.c + 0 + 0 + + + 19 + 100 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\timeouts.c + timeouts.c + 0 + 0 + + + 19 + 101 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\udp.c + udp.c + 0 + 0 + + + 19 + 102 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\autoip.c + autoip.c + 0 + 0 + + + 19 + 103 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\dhcp.c + dhcp.c + 0 + 0 + + + 19 + 104 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\etharp.c + etharp.c + 0 + 0 + + + 19 + 105 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\icmp.c + icmp.c + 0 + 0 + + + 19 + 106 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\igmp.c + igmp.c + 0 + 0 + + + 19 + 107 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\ip4.c + ip4.c + 0 + 0 + + + 19 + 108 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\ip4_addr.c + ip4_addr.c + 0 + 0 + + + 19 + 109 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\ip4_frag.c + ip4_frag.c + 0 + 0 + + + + + lwip_api + 0 + 0 + 0 + 0 + + 20 + 110 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\api_lib.c + api_lib.c + 0 + 0 + + + 20 + 111 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\api_msg.c + api_msg.c + 0 + 0 + + + 20 + 112 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\err.c + err.c + 0 + 0 + + + 20 + 113 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\netbuf.c + netbuf.c + 0 + 0 + + + 20 + 114 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\netdb.c + netdb.c + 0 + 0 + + + 20 + 115 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\netifapi.c + netifapi.c + 0 + 0 + + + 20 + 116 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\sockets.c + sockets.c + 0 + 0 + + + 20 + 117 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\tcpip.c + tcpip.c + 0 + 0 + + + + + lwip_netif + 0 + 0 + 0 + 0 + + 21 + 118 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\netif\ethernet.c + ethernet.c + 0 + 0 + + + 21 + 119 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\netif\ethernetif.c + ethernetif.c + 0 + 0 + + + + + lwip_port + 0 + 0 + 0 + 0 + + 22 + 120 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\port\arch\lwip_hooks.c + lwip_hooks.c + 0 + 0 + + + 22 + 121 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\port\arch\sys_arch.c + sys_arch.c + 0 + 0 + + + 22 + 122 + 5 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\port\lwipopts.h + lwipopts.h + 0 + 0 + + + + + net + 0 + 0 + 0 + 0 + + 23 + 123 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\dhcpd\dhcp_packet.c + dhcp_packet.c + 0 + 0 + + + 23 + 124 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\dhcpd\dhcpd.c + dhcpd.c + 0 + 0 + + + 23 + 125 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\dhcpd\ip_allocator.c + ip_allocator.c + 0 + 0 + + + 23 + 126 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\iperf\iperf.c + iperf.c + 0 + 0 + + + 23 + 127 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\ping\ping.c + ping.c + 0 + 0 + + + + + tos_components + 0 + 0 + 0 + 0 + + 24 + 128 + 1 + 0 + 0 + 0 + ..\..\..\..\components\fs\kv\tos_kv.c + tos_kv.c + 0 + 0 + + + + + nvds + 0 + 0 + 0 + 0 + + 25 + 129 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\nvds\nvds.c + nvds.c + 0 + 0 + + + + + mqttclient + 0 + 0 + 0 + 0 + + 26 + 130 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqttclient\mqttclient.c + mqttclient.c + 0 + 0 + + + 26 + 131 + 5 + 0 + 0 + 0 + ..\..\TOS-CONFIG\mqtt_config.h + mqtt_config.h + 0 + 0 + + + + + mqttclient/mqtt + 0 + 0 + 0 + 0 + + 27 + 132 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTConnectClient.c + MQTTConnectClient.c + 0 + 0 + + + 27 + 133 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTConnectServer.c + MQTTConnectServer.c + 0 + 0 + + + 27 + 134 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTDeserializePublish.c + MQTTDeserializePublish.c + 0 + 0 + + + 27 + 135 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTFormat.c + MQTTFormat.c + 0 + 0 + + + 27 + 136 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTPacket.c + MQTTPacket.c + 0 + 0 + + + 27 + 137 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTSerializePublish.c + MQTTSerializePublish.c + 0 + 0 + + + 27 + 138 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTSubscribeClient.c + MQTTSubscribeClient.c + 0 + 0 + + + 27 + 139 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTSubscribeServer.c + MQTTSubscribeServer.c + 0 + 0 + + + 27 + 140 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTUnsubscribeClient.c + MQTTUnsubscribeClient.c + 0 + 0 + + + 27 + 141 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTUnsubscribeServer.c + MQTTUnsubscribeServer.c + 0 + 0 + + + + + mqttclient/commom + 0 + 0 + 0 + 0 + + 28 + 142 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\common\random.c + random.c + 0 + 0 + + + 28 + 143 + 5 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\common\error.h + error.h + 0 + 0 + + + 28 + 144 + 5 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\common\log.h + log.h + 0 + 0 + + + 28 + 145 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\common\list.c + list.c + 0 + 0 + + + + + mqttclient/network + 0 + 0 + 0 + 0 + + 29 + 146 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\network\network.c + network.c + 0 + 0 + + + + + mqttclient/platform + 0 + 0 + 0 + 0 + + 30 + 147 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_memory.c + platform_memory.c + 0 + 0 + + + 30 + 148 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_mutex.c + platform_mutex.c + 0 + 0 + + + 30 + 149 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_net_socket.c + platform_net_socket.c + 0 + 0 + + + 30 + 150 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_nettype_tcp.c + platform_nettype_tcp.c + 0 + 0 + + + 30 + 151 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_nettype_tls.c + platform_nettype_tls.c + 0 + 0 + + + 30 + 152 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_thread.c + platform_thread.c + 0 + 0 + + + 30 + 153 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_timer.c + platform_timer.c + 0 + 0 + + + + + ::CMSIS + 0 + 0 + 0 + 1 + + +
diff --git a/board/EVB_LN882x/KEIL/mqtt_client/TencentOS_tiny.uvprojx b/board/EVB_LN882x/KEIL/mqtt_client/TencentOS_tiny.uvprojx new file mode 100644 index 00000000..e6baa5ba --- /dev/null +++ b/board/EVB_LN882x/KEIL/mqtt_client/TencentOS_tiny.uvprojx @@ -0,0 +1,1419 @@ + + + + 2.1 + +
### uVision Project, (C) Keil Software
+ + + + TencentOS_tiny + 0x4 + ARM-ADS + 5060750::V5.06 update 6 (build 750)::ARMCC + 0 + + + ARMCM4_FP + ARM + ARM.CMSIS.5.4.0 + http://www.keil.com/pack/ + IROM(0x00000000,0x00040000) IRAM(0x20000000,0x00020000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL ELITTLE + + + UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000) + 0 + $$Device:ARMCM4_FP$Device\ARM\ARMCM4\Include\ARMCM4_FP.h + + + + + + + + + + + 0 + 0 + + + + + + + 0 + 0 + 0 + 0 + 1 + + .\Objects\ + firmware_XIP + 1 + 0 + 0 + 1 + 1 + .\Listings\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 1 + 0 + .\after_build_ln882x.bat + + 0 + 0 + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 0 + + + SARMCM3.DLL + -MPU + DCM.DLL + -pCM4 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM4 + + + + 1 + 0 + 0 + 0 + 16 + + + + + 0 + 1 + 0 + 1 + 1 + 4096 + + 1 + BIN\UL2CM3.DLL + "..\..\..\..\platform\vendor_bsp\LN\ln882x\tools\JFlash\JFlash.exe" (-openprj..\..\..\..\platform\vendor_bsp\LN\ln882x\tools\JFlash\LN881x.jflash -open.\flashimage.bin,0x0 -programverify) + + + + + 0 + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + "Cortex-M4" + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 2 + 0 + 0 + 0 + 8 + 1 + 1 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x20000 + + + 1 + 0x0 + 0x40000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x40000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x20000 + + + 0 + 0x0 + 0x0 + + + + + + 1 + 1 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + + + LN882x,ARM_MATH_CM4 + + ..\..\BSP\Inc;..\..\TOS-CONFIG;..\..\..\..\kernel\pm\include;..\..\..\..\kernel\core\include;..\..\..\..\arch\arm\arm-v7m\common\include;..\..\..\..\arch\arm\arm-v7m\cortex-m4\armcc;..\..\..\..\osal\cmsis_os;..\..\..\..\examples\helloworld;..\hello_world;..\..\..\..\platform\vendor_bsp\LN\ln882x\include\driver_ln882x;..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\ll\include;..\..\..\..\components\fs\kv\include;..\..\..\..\platform\vendor_bsp\LN\ln882x\include;..\..\..\..\platform\vendor_bsp\LN\ln882x\include\cpu\ARM_CM4F\ln88xx;..\..\..\..\platform\vendor_bsp\LN\ln882x\include\kernel;..\..\..\..\platform\vendor_bsp\LN\ln882x\include\cpu\ARM_CM4F\CMSIS_5.3.0;..\..\..\..\platform\vendor_bsp\LN\ln882x\include\wifi_manager;..\..\..\..\platform\vendor_bsp\LN\ln882x\include\net;..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\include;..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\port;..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\port\arch;..\..\..\..\components\connectivity\mqttclient\common;..\..\..\..\components\connectivity\mqttclient\mqtt;..\..\..\..\components\connectivity\mqttclient\mqttclient;..\..\..\..\components\connectivity\mqttclient\network;..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 0 + 0 + 0 + 0 + 1 + 0 + 0x08000000 + 0x20000000 + + .\firmware_XIP_ln882x.sct + + + --no_autoat --keep=main.o(no_init_data) + + + + + + + + Application/MDK-ARM + + + startup_ln882x.S + 2 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\cpu\ARM_CM4F\ln88xx\startup_ln882x.S + + + system_ln88xx.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\cpu\ARM_CM4F\ln88xx\system_ln88xx.c + + + + + Application/User + + + main.c + 1 + ..\..\BSP\Src\main.c + + + + + examples + + + mqttclient_examples.c + 1 + ..\..\BSP\Src\mqttclient_examples.c + + + mqtt_task.c + 1 + ..\..\BSP\Src\mqtt_task.c + + + + + Drivers/Drv + + + drv_adc_measure.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\drv\drv_adc_measure.c + + + + + Drivers/HAL + + + hal_common.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_common.c + + + hal_syscon.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_syscon.c + + + cache.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\cache.c + + + hal_dma.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_dma.c + + + qspi.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\qspi.c + + + hal_uart.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_uart.c + + + flash.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\flash.c + + + hal_trng.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_trng.c + + + hal_timer.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_timer.c + + + hal_sleep.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_sleep.c + + + 2 + 0 + 0 + 0 + 0 + 0 + 2 + 2 + 2 + 2 + 11 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + hal_efuse.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_efuse.c + + + hal_adc.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_adc.c + + + hal_interrupt.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\driver_ln882x\hal\hal_interrupt.c + + + + + kernel + + + tos_binary_heap.c + 1 + ..\..\..\..\kernel\core\tos_binary_heap.c + + + tos_char_fifo.c + 1 + ..\..\..\..\kernel\core\tos_char_fifo.c + + + tos_completion.c + 1 + ..\..\..\..\kernel\core\tos_completion.c + + + tos_countdownlatch.c + 1 + ..\..\..\..\kernel\core\tos_countdownlatch.c + + + tos_event.c + 1 + ..\..\..\..\kernel\core\tos_event.c + + + tos_global.c + 1 + ..\..\..\..\kernel\core\tos_global.c + + + tos_mmblk.c + 1 + ..\..\..\..\kernel\core\tos_mmblk.c + + + tos_mmheap.c + 1 + ..\..\..\..\kernel\core\tos_mmheap.c + + + tos_mutex.c + 1 + ..\..\..\..\kernel\core\tos_mutex.c + + + tos_pend.c + 1 + ..\..\..\..\kernel\core\tos_pend.c + + + tos_mail_queue.c + 1 + ..\..\..\..\kernel\core\tos_mail_queue.c + + + tos_message_queue.c + 1 + ..\..\..\..\kernel\core\tos_message_queue.c + + + tos_priority_mail_queue.c + 1 + ..\..\..\..\kernel\core\tos_priority_mail_queue.c + + + tos_priority_message_queue.c + 1 + ..\..\..\..\kernel\core\tos_priority_message_queue.c + + + tos_priority_queue.c + 1 + ..\..\..\..\kernel\core\tos_priority_queue.c + + + tos_ring_queue.c + 1 + ..\..\..\..\kernel\core\tos_ring_queue.c + + + tos_robin.c + 1 + ..\..\..\..\kernel\core\tos_robin.c + + + tos_sched.c + 1 + ..\..\..\..\kernel\core\tos_sched.c + + + tos_sem.c + 1 + ..\..\..\..\kernel\core\tos_sem.c + + + tos_sys.c + 1 + ..\..\..\..\kernel\core\tos_sys.c + + + tos_task.c + 1 + ..\..\..\..\kernel\core\tos_task.c + + + tos_tick.c + 1 + ..\..\..\..\kernel\core\tos_tick.c + + + tos_time.c + 1 + ..\..\..\..\kernel\core\tos_time.c + + + tos_timer.c + 1 + ..\..\..\..\kernel\core\tos_timer.c + + + + + cpu + + + port_c.c + 1 + ..\..\..\..\arch\arm\arm-v7m\cortex-m4\armcc\port_c.c + + + port_s.S + 2 + ..\..\..\..\arch\arm\arm-v7m\cortex-m4\armcc\port_s.S + + + tos_cpu.c + 1 + ..\..\..\..\arch\arm\arm-v7m\common\tos_cpu.c + + + + + config + + + tos_config.h + 5 + ..\..\TOS-CONFIG\tos_config.h + + + proj_config.h + 5 + ..\..\TOS-CONFIG\proj_config.h + + + + + cmsis + + + cmsis_os.c + 1 + ..\..\..\..\osal\cmsis_os\cmsis_os.c + + + + + bsp + + + mcu_init.c + 1 + ..\..\BSP\Src\mcu_init.c + + + + + serial + + + serial.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\serial\serial.c + + + serial_hw.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\serial\serial_hw.c + + + + + console + + + console.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\console\console.c + + + + + at_cmd + + + at_cmd_basic.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\atcmd\at_cmd_basic.c + + + at_cmd_wifi.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\atcmd\at_cmd_wifi.c + + + at_list.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\atcmd\at_list.c + + + at_parser.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\atcmd\at_parser.c + + + at_string.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\atcmd\at_string.c + + + at_task.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\atcmd\at_task.c + + + + + utils + + + log.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\debug\log.c + + + art_assert.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\debug\art_assert.c + + + art_string.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\art_string.c + + + art_time.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\art_time.c + + + crc16.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\crc16.c + + + crc32.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\crc32.c + + + gbk_to_unicode.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\gbk_to_unicode.c + + + md5.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\md5.c + + + wrap_stdio.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\wrap_stdio.c + + + fifobuf.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\fifo\fifobuf.c + + + eeprom.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\eeprom.c + + + system_parameter.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\system_parameter.c + + + cm_backtrace.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\utils\debug\CmBacktrace\cm_backtrace.c + + + + + os_adapter_inc + + + osal.h + 5 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\include\kernel\osal\osal.h + + + + + os_adapter_src + + + TencentOS_common.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\kernel\TencentOS_Adapter\TencentOS_common.c + + + TencentOS_debug.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\kernel\TencentOS_Adapter\TencentOS_debug.c + + + TencentOS_mutex.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\kernel\TencentOS_Adapter\TencentOS_mutex.c + + + TencentOS_queue.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\kernel\TencentOS_Adapter\TencentOS_queue.c + + + TencentOS_semaphore.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\kernel\TencentOS_Adapter\TencentOS_semaphore.c + + + TencentOS_thread.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\kernel\TencentOS_Adapter\TencentOS_thread.c + + + TencentOS_timer.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\kernel\TencentOS_Adapter\TencentOS_timer.c + + + + + lib + + + arm_cortexM4lf_math.lib + 4 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\lib\arm_cortexM4lf_math.lib + + + wifi_mac.lib + 4 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\lib\wifi_mac.lib + + + wifi_driver.lib + 4 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\lib\wifi_driver.lib + + + + + wifi_manager + + + wifi_manager.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\wifi\wifi_manager\wifi_manager.c + + + + + lwip_core + + + def.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\def.c + + + dns.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\dns.c + + + inet_chksum.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\inet_chksum.c + + + init.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\init.c + + + ip.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ip.c + + + mem.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\mem.c + + + 2 + 0 + 0 + 0 + 0 + 0 + 2 + 2 + 2 + 2 + 11 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + memp.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\memp.c + + + netif.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\netif.c + + + pbuf.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\pbuf.c + + + raw.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\raw.c + + + stats.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\stats.c + + + sys.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\sys.c + + + tcp.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\tcp.c + + + tcp_in.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\tcp_in.c + + + tcp_out.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\tcp_out.c + + + timeouts.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\timeouts.c + + + udp.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\udp.c + + + autoip.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\autoip.c + + + dhcp.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\dhcp.c + + + etharp.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\etharp.c + + + icmp.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\icmp.c + + + igmp.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\igmp.c + + + ip4.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\ip4.c + + + ip4_addr.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\ip4_addr.c + + + ip4_frag.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\core\ipv4\ip4_frag.c + + + + + lwip_api + + + api_lib.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\api_lib.c + + + api_msg.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\api_msg.c + + + err.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\err.c + + + netbuf.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\netbuf.c + + + netdb.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\netdb.c + + + netifapi.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\netifapi.c + + + sockets.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\sockets.c + + + tcpip.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\api\tcpip.c + + + + + lwip_netif + + + ethernet.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\netif\ethernet.c + + + ethernetif.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\netif\ethernetif.c + + + + + lwip_port + + + lwip_hooks.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\port\arch\lwip_hooks.c + + + sys_arch.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\port\arch\sys_arch.c + + + lwipopts.h + 5 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\lwip-2.0.3\src\port\lwipopts.h + + + + + net + + + dhcp_packet.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\dhcpd\dhcp_packet.c + + + dhcpd.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\dhcpd\dhcpd.c + + + ip_allocator.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\dhcpd\ip_allocator.c + + + iperf.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\iperf\iperf.c + + + ping.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\net\ping\ping.c + + + + + tos_components + + + tos_kv.c + 1 + ..\..\..\..\components\fs\kv\tos_kv.c + + + + + nvds + + + nvds.c + 1 + ..\..\..\..\platform\vendor_bsp\LN\ln882x\src\nvds\nvds.c + + + + + mqttclient + + + mqttclient.c + 1 + ..\..\..\..\components\connectivity\mqttclient\mqttclient\mqttclient.c + + + mqtt_config.h + 5 + ..\..\TOS-CONFIG\mqtt_config.h + + + + + mqttclient/mqtt + + + MQTTConnectClient.c + 1 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTConnectClient.c + + + MQTTConnectServer.c + 1 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTConnectServer.c + + + MQTTDeserializePublish.c + 1 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTDeserializePublish.c + + + MQTTFormat.c + 1 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTFormat.c + + + MQTTPacket.c + 1 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTPacket.c + + + MQTTSerializePublish.c + 1 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTSerializePublish.c + + + MQTTSubscribeClient.c + 1 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTSubscribeClient.c + + + MQTTSubscribeServer.c + 1 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTSubscribeServer.c + + + MQTTUnsubscribeClient.c + 1 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTUnsubscribeClient.c + + + MQTTUnsubscribeServer.c + 1 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTUnsubscribeServer.c + + + + + mqttclient/commom + + + random.c + 1 + ..\..\..\..\components\connectivity\mqttclient\common\random.c + + + error.h + 5 + ..\..\..\..\components\connectivity\mqttclient\common\error.h + + + log.h + 5 + ..\..\..\..\components\connectivity\mqttclient\common\log.h + + + list.c + 1 + ..\..\..\..\components\connectivity\mqttclient\common\list.c + + + + + mqttclient/network + + + network.c + 1 + ..\..\..\..\components\connectivity\mqttclient\network\network.c + + + + + mqttclient/platform + + + platform_memory.c + 1 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_memory.c + + + platform_mutex.c + 1 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_mutex.c + + + platform_net_socket.c + 1 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_net_socket.c + + + platform_nettype_tcp.c + 1 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_nettype_tcp.c + + + platform_nettype_tls.c + 1 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_nettype_tls.c + + + platform_thread.c + 1 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_thread.c + + + platform_timer.c + 1 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_timer.c + + + + + ::CMSIS + + + + + + + + + + + + + + + + + + +
diff --git a/board/EVB_LN882x/KEIL/mqtt_client/after_build_ln882x.bat b/board/EVB_LN882x/KEIL/mqtt_client/after_build_ln882x.bat new file mode 100644 index 00000000..cc2c0678 --- /dev/null +++ b/board/EVB_LN882x/KEIL/mqtt_client/after_build_ln882x.bat @@ -0,0 +1,8 @@ + +python ..\..\..\..\platform\vendor_bsp\LN\ln882x\tools\user_cmd\after_build_soc.py firmware_XIP + +..\..\..\..\platform\vendor_bsp\LN\ln882x\tools\bin\mkimage.exe ln882x flashimage ..\..\..\..\platform\vendor_bsp\LN\ln882x\lib\boot_ram_ln882x.bin firmware_XIP.bin flashimage.bin release=1 crp_enable=0 app_version=10 hw_version=0 + +..\..\..\..\platform\vendor_bsp\LN\ln882x\tools\bin\fpu_patch.exe .\firmware_XIP.asm .\flashimage.bin + + diff --git a/board/EVB_LN882x/KEIL/mqtt_client/firmware_XIP_ln882x.sct b/board/EVB_LN882x/KEIL/mqtt_client/firmware_XIP_ln882x.sct new file mode 100644 index 00000000..50c5ed54 --- /dev/null +++ b/board/EVB_LN882x/KEIL/mqtt_client/firmware_XIP_ln882x.sct @@ -0,0 +1,78 @@ +#! armcc -E +#include ".\flash_partition_table.h" +#include ".\..\..\..\..\platform\vendor_bsp\LN\ln882x\include\cpu\ARM_CM4F\ln88xx\mem_map_ln882x.h" + + +LR_FLASH FLASH_BASE+PRIMARY_PARTITION_OFFSET PRIMARY_PATTITION_SIZE +{; load region size_region + + ISR_VECTOR RAM_BASE ALIGN 0x100 + { + startup_*.o (RESET, +First) + } + + ER_FLASH FLASH_BASE+PRIMARY_PARTITION_OFFSET + ImageLength(ISR_VECTOR) PRIMARY_PATTITION_SIZE + {; load address = execution address + *(InRoot$$Sections) + .ANY (+RO) + } + + ER_CODE ImageLimit(ISR_VECTOR) + { + ;mandatory item + ll_qspi.o(+RO) + ll_cache.o(+RO) + ll_dma.o(+RO) + ll_syscon.o(+RO) + ll_sleep.o(+RO) + ll_rtc.o(+RO) + cache.o(+RO) + qspi.o(+RO) + flash.o(+RO) + hal_dma.o(+RO) + hal_syscon.o(+RO) + hal_sleep.o(+RO) + hal_rtc.o(+RO) + ;port.o(XIR) + + ;optional item + ;ll_uart.o(+RO) + ;hal_uart.o(+RO) + ;log.o(+RO) + ;serial.o(+RO) + ;serial_art2000.o(+RO) + ;fifobuf.o(+RO) + } + + ER_STACK +0 + { + startup_ln*(+RW +ZI) + } + + ER_DATA +0 + { + *(.ARM.__at_0x1FFFFFFC) + .ANY (+RW +ZI) + } + + ;IQ Data area cannot be used by ER_DATA region + ;ScatterAssert(ImageLimit(ER_DATA) < (0x20020300)) + + HEAP_SPACE +0 EMPTY RETENTION_MEM_BASE-ImageLimit(ER_DATA) + {; Heap region + } + + NO_INIT_DATA RETENTION_MEM_BASE UNINIT 0x80 + { + *(no_init_data) + } + + RETENTION RETENTION_MEM_BASE+0x80 ANY_SIZE 0x2000-0x80-16 RETENTION_MEM_SIZE + { + *(retention_data) + phy_LN.o(+RW +ZI) + ch_info.o(+RW +ZI) + } +} + + diff --git a/board/EVB_LN882x/KEIL/mqtt_client/flash_partition_table.h b/board/EVB_LN882x/KEIL/mqtt_client/flash_partition_table.h new file mode 100644 index 00000000..e068e5bf --- /dev/null +++ b/board/EVB_LN882x/KEIL/mqtt_client/flash_partition_table.h @@ -0,0 +1,32 @@ +#ifndef __FLASH_PARTITION_TABLE_H__ +#define __FLASH_PARTITION_TABLE_H__ + +//#define RETENTION_MEM_BASE 0x20028000 +//#define RETENTION_MEM_SIZE 0x2000 + +#ifndef FLASH_BASE +#define FLASH_BASE (0x10000000) +#endif + +#ifndef FLASH_SIZE +#define FLASH_SIZE (0x00200000) +#endif + +#ifndef PRIMARY_PARTITION_OFFSET +#define PRIMARY_PARTITION_OFFSET (0x0000F000) +#endif + +#define PRIMARY_PATTITION_START 0x0000F000 +#define PRIMARY_PATTITION_SIZE 0xE1000 +//#define USERAPP_SRAM_BASE 0x1FFF0000 +#define BACKUP_PATTITION_START 0x000F0000 +#define BACKUP_PATTITION_SIZE 0xE1000 +#define USERDATA_PATTITION_START 0x001D1000 +#define USERDATA_PATTITION_SIZE 0x23000 + +//memory offset check +#if ((PRIMARY_PATTITION_START < PRIMARY_PARTITION_OFFSET) || (BACKUP_PATTITION_START < PRIMARY_PATTITION_START) || (USERDATA_PATTITION_START < BACKUP_PATTITION_START) || (PRIMARY_PATTITION_START + PRIMARY_PATTITION_SIZE > BACKUP_PATTITION_START) || (BACKUP_PATTITION_START + BACKUP_PATTITION_SIZE > USERDATA_PATTITION_START) || (USERDATA_PATTITION_START + USERDATA_PATTITION_SIZE > FLASH_SIZE)) + #error "flash partition define error!" +#endif + +#endif /* __FLASH_PARTITION_TABLE_H__ */ diff --git a/board/EVB_LN882x/TOS-CONFIG/mqtt_config.h b/board/EVB_LN882x/TOS-CONFIG/mqtt_config.h new file mode 100644 index 00000000..4599bc94 --- /dev/null +++ b/board/EVB_LN882x/TOS-CONFIG/mqtt_config.h @@ -0,0 +1,47 @@ +/* + * @Author: jiejie + * @Github: https://github.com/jiejieTop + * @Date: 2019-12-15 00:42:16 + * @LastEditTime: 2020-02-25 09:25:35 + * @Description: the code belongs to jiejie, please keep the author information and source code according to the license. + */ +#ifndef _MQTT_CONFIG_H_ +#define _MQTT_CONFIG_H_ + +//#define LOG_IS_SALOF + +#define LOG_LEVEL DEBUG_LEVEL //WARN_LEVEL DEBUG_LEVEL + +#ifdef LOG_IS_SALOF + #define USE_LOG (1U) + #define USE_SALOF (1U) + #define SALOF_OS USE_TENCENTOS + #define USE_IDLE_HOOK (0U) + #define LOG_COLOR (0U) + #define LOG_TS (0U) + #define LOG_TAR (0U) + #define SALOF_BUFF_SIZE (512U) + #define SALOF_FIFO_SIZE (1024U) + #define SALOF_TASK_STACK_SIZE (1024U) + #define SALOF_TASK_TICK (50U) +#endif + + +#define MQTT_MAX_PACKET_ID (0xFFFF - 1) +#define MQTT_TOPIC_LEN_MAX 64 +#define MQTT_ACK_HANDLER_NUM_MAX 64 +#define MQTT_DEFAULT_BUF_SIZE 1024 +#define MQTT_DEFAULT_CMD_TIMEOUT 4000 +#define MQTT_MAX_CMD_TIMEOUT 20000 +#define MQTT_MIN_CMD_TIMEOUT 1000 +#define MQTT_KEEP_ALIVE_INTERVAL 100 // unit: second +#define MQTT_VERSION 4 // 4 is mqtt 3.1.1 +#define MQTT_RECONNECT_DEFAULT_DURATION 1000 +#define MQTT_THREAD_STACK_SIZE 2048 +#define MQTT_THREAD_PRIO 5 +#define MQTT_THREAD_TICK 50 + + +//#define MQTT_NETWORK_TYPE_TLS + +#endif /* _MQTT_CONFIG_H_ */