diff --git a/board/BDW01-STM32L496VG/BSP/Src/mymath.c b/board/BDW01-STM32L496VG/BSP/Src/mymath.c index 7c438067b5c73e129486a481556f8e6e7518de91..838c65fbe78d7596c42d2e5b1392bbbac4376952 100644 --- a/board/BDW01-STM32L496VG/BSP/Src/mymath.c +++ b/board/BDW01-STM32L496VG/BSP/Src/mymath.c @@ -232,12 +232,22 @@ void split(char *src,const char *separator,char **dest,int *num) { *num = count; } - - - - - - +/**************************************************************************** +src 原始经纬度字符串 2231.88560,11356.42075 前面纬度,后面经度 +lon 输出经度 +lat 输出纬度 +*****************************************************************************/ +void Lon_to_f(char *str, float * lon, float * lat) +{ + double longtitude,latitude; + int lon_inter=0,lat_inter=0; + sscanf(str, "%lf,%lf",&latitude,&longtitude); + lon_inter =longtitude/100; + *lon =(longtitude - lon_inter*100)/60+lon_inter; + + lat_inter =latitude/100; + *lat =(latitude - lat_inter*100)/60+lat_inter; +} diff --git a/board/BDW01-STM32L496VG/BSP/app/mqttclient_iot_explorer_locator_ll.c b/board/BDW01-STM32L496VG/BSP/app/mqttclient_iot_explorer_locator_ll.c new file mode 100644 index 0000000000000000000000000000000000000000..3964dbbe49ed3f45fd6183546db0fae27a77b1c8 --- /dev/null +++ b/board/BDW01-STM32L496VG/BSP/app/mqttclient_iot_explorer_locator_ll.c @@ -0,0 +1,280 @@ +#include "stm32l4xx_hal.h" +#include "mcu_init.h" +#include "tos_k.h" +#include "mqttclient.h" +#include "cjson.h" +#include "sal_module_wrapper.h" + + + +//#define USE_ESP8266 +//#define USE_NB_BC35 +//#define USE_BC26 +//#define USE_EC200S +#define USE_M5313 + + +#if defined(USE_ESP8266) +#include "esp8266.h" +#elif defined(USE_BC26) +#include "bc26.h" +#elif defined(USE_EC200S) +#include "ec200s.h" +#elif defined(USE_M5313) +#include "m5313.h" + +#endif + +uint8_t module_sel=0; //0---M5313; 1---wifi; 2---BT; 3---Lora + + +#ifdef USE_ESP8266 +static hal_uart_port_t esp8266_port = HAL_UART_PORT_0; + +void mqtt_set_esp8266_port(hal_uart_port_t port) { + esp8266_port = port; +} +#endif + +k_event_t report_result_event; +k_event_flag_t report_success = 1<<0; +k_event_flag_t report_fail = 1<<1; + +/* 接收数据最大缓存条数 */ +#define MESSAGE_MAX 5 + +typedef struct payload_mail_st { + void* client; + void* payload; +} payload_mail_t; +k_mail_q_t mail_q; +uint8_t mail_pool[MESSAGE_MAX * sizeof(payload_mail_t *)]; + +//#define REPORT_DATA_TEMPLATE "{\"method\":\"report\",\"clientToken\":\"00000001\",\"params\":{\"location\":\"%s\"}}" +#define REPORT_DATA_TEMPLATE "{\"method\":\"report\",\"clientToken\":\"00000001\",\"params\":{\"GPS_Info\":{\"longtitude\":%f,\"latitude\":%f}}}" +#define CONTROL_REPLY_DATA "{\"method\":\"control_reply\",\"clientToken\":\"%s\",\"code\":0,\"status\":\"success\"}" + +char report_buf[1024]; +char reply_buf[200]; + + +static void tos_topic_handler(void* client, message_data_t* msg) +{ + (void) client; + cJSON* cjson_root = NULL; + cJSON* cjson_status = NULL; + cJSON* cjson_method = NULL; + cJSON* cjson_params = NULL; + cJSON* cjson_relay_status = NULL; + cJSON* cjson_client_token = NULL; + int relay_status = 0; + char* status = NULL; + char* method = NULL; + char* client_token = NULL; + k_event_flag_t event_flag = report_fail; + + int error; + mqtt_message_t reply_msg; + payload_mail_t payload_mail; + + /* 打印日志 */ + MQTT_LOG_I("-----------------------------------------------------------------------------------"); + MQTT_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); + MQTT_LOG_I("-----------------------------------------------------------------------------------\n"); + + /* 使用cjson解析上报响应数据 */ + cjson_root = cJSON_Parse((char*)msg->message->payload); + if (cjson_root == NULL) { + printf("report reply message parser fail\r\n"); + event_flag = report_fail; + goto exit; + } + + /* 提取消息类型 */ + cjson_method = cJSON_GetObjectItem(cjson_root, "method"); + method = cJSON_GetStringValue(cjson_method); + + /* 判断是哪种类型的消息 */ + if (strstr(method, "report_reply")) { + + /* 提取status状态 */ + cjson_status = cJSON_GetObjectItem(cjson_root, "status"); + status = cJSON_GetStringValue(cjson_status); + if (cjson_status == NULL || status == NULL) { + printf("report reply status parser fail\r\n"); + event_flag = report_fail; + goto exit; + } + + /* 判断status状态 */ + if (strstr(status,"success")) { + event_flag = report_success; + }else { + event_flag = report_fail; + } + }else if (strstr(method, "control")) { + + //收到平台下发的控制报文,提取client_token,用于上报响应 + cjson_client_token = cJSON_GetObjectItem(cjson_root, "clientToken"); + client_token = cJSON_GetStringValue(cjson_client_token); + + printf("parse client token:%s\r\n", client_token); + + //提取 relay_status + cjson_params = cJSON_GetObjectItem(cjson_root, "params"); + cjson_relay_status = cJSON_GetObjectItem(cjson_params, "led"); + relay_status = cjson_relay_status->valueint; + + //根据 relay_status 执行相应的动作 + if (relay_status == 0) { + HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_SET); + } else if (relay_status == 1) { + HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_RESET); + } + + memset(reply_buf, 0, sizeof(reply_buf)); + sprintf(reply_buf, CONTROL_REPLY_DATA, client_token); + memset(&reply_msg, 0, sizeof(reply_msg)); + reply_msg.qos = QOS0; + reply_msg.payload = (void *) reply_buf; + + printf("control reply:\r\n\t%s\r\n", reply_buf); + + error = mqtt_publish(payload_mail.client, "$thing/up/property/CUH3P1QBJD/bd_location", &reply_msg); + + MQTT_LOG_D("control reply publish error is %#0x", error); + } + +exit: + cJSON_Delete(cjson_root); + cjson_root = NULL; + status = NULL; + + tos_event_post(&report_result_event, event_flag); + + return; +} + +void mqttclient_task(void) +{ + #define BUFFER_SIZE 128 + int error; + + int lightness = 0; + + float longtitude ; // + + float latitude ; + + mqtt_client_t *client = NULL; + + mqtt_message_t msg; + + k_event_flag_t match_flag; + + char host_ip[20]; + + int len; + uint8_t *buffer = K_NULL; + + memset(&msg, 0, sizeof(msg)); + + gps_init(HAL_UART_PORT_3); + + buffer = tos_mmheap_alloc(BUFFER_SIZE); + +#ifdef USE_ESP8266 + esp8266_sal_init(esp8266_port); + esp8266_join_ap("Supowang", "13975428888"); +#endif + +#ifdef USE_NB_BC35 + int bc35_28_95_sal_init(hal_uart_port_t uart_port); + bc35_28_95_sal_init(HAL_UART_PORT_0); +#endif + +#ifdef USE_BC26 + bc26_sal_init(HAL_UART_PORT_2); +#endif + +#ifdef USE_EC200S + ec200s_sal_init(HAL_UART_PORT_2); +#endif + +#ifdef USE_M5313 + m5313_sal_init(HAL_UART_PORT_2); +#endif + + mqtt_log_init(); + + client = mqtt_lease(); + + tos_event_create(&report_result_event, (k_event_flag_t)0u); + + /* Domain Format: .iotcloud.tencentdevices.com */ + tos_sal_module_parse_domain("CUH3P1QBJD.iotcloud.tencentdevices.com",host_ip,sizeof(host_ip)); + + /* + These infomation is generated by mqtt_config_gen.py tool in "TencentOS-tiny\tools" directory. + */ + mqtt_set_port(client, "1883"); + mqtt_set_host(client, host_ip); + mqtt_set_client_id(client, "CUH3P1QBJDbd_location"); + mqtt_set_user_name(client, "CUH3P1QBJDbd_location;21010406;12365;4294967295"); + mqtt_set_password(client, "9ab897740c13630f7e0fbf182d5bee3f51a2328e;hmacsha1"); + mqtt_set_clean_session(client, 1); + + error = mqtt_connect(client); + + MQTT_LOG_D("mqtt connect error is %#0x", error); + + error = mqtt_subscribe(client, "$thing/down/property/CUH3P1QBJD/bd_location", QOS0, tos_topic_handler); + + MQTT_LOG_D("mqtt subscribe error is %#0x", error); + + while (1) { + + if((len =gps_read(1,buffer,BUFFER_SIZE))>0) + { + printf("gps:%s(%d)\n",buffer,len); + Lon_to_f(buffer,&longtitude,&latitude); + printf("lon=%f;lat=%f\n",longtitude,latitude); + memset(&msg, 0, sizeof(msg)); + + snprintf(report_buf, sizeof(report_buf), REPORT_DATA_TEMPLATE, longtitude,latitude); + + msg.qos = QOS0; + msg.payload = (void *) report_buf; + + error = mqtt_publish(client, "$thing/up/property/CUH3P1QBJD/bd_location", &msg); + + MQTT_LOG_D("mqtt publish error is %#0x", error); + + tos_event_pend(&report_result_event, + report_success|report_fail, + &match_flag, + TOS_TIME_FOREVER, + TOS_OPT_EVENT_PEND_ANY | TOS_OPT_EVENT_PEND_CLR); + + if (match_flag == report_success) { + printf("report to Tencent IoT Explorer success\r\n"); + + }else if (match_flag == report_fail){ + printf("report to Tencent IoT Explorer fail\r\n"); + } + + } + + tos_task_delay(5000); + } +} + +void application_entry(void *arg) +{ + mqttclient_task(); + while (1) { + printf("This is a mqtt demo!\r\n"); + tos_task_delay(1000); + } +} diff --git a/board/BDW01-STM32L496VG/KEIL/mqttclient_iot_explorer_locator_ll/BDW01-STM32L496VG.uvoptx b/board/BDW01-STM32L496VG/KEIL/mqttclient_iot_explorer_locator_ll/BDW01-STM32L496VG.uvoptx new file mode 100644 index 0000000000000000000000000000000000000000..66454570ddc2edbf77766a54e237596f4375e791 --- /dev/null +++ b/board/BDW01-STM32L496VG/KEIL/mqttclient_iot_explorer_locator_ll/BDW01-STM32L496VG.uvoptx @@ -0,0 +1,2392 @@ + + + + 1.0 + +
### uVision Project, (C) Keil Software
+ + + *.c + *.s*; *.src; *.a* + *.obj; *.o + *.lib + *.txt; *.h; *.inc; *.md + *.plm + *.cpp + 0 + + + + 0 + 0 + + + + BDW01-STM32L496VG + 0x4 + ARM-ADS + + 12000000 + + 1 + 1 + 0 + 1 + 0 + + + 1 + 65535 + 0 + 0 + 0 + + + 79 + 66 + 8 + + + + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + + + 1 + 0 + 1 + + 18 + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + 1 + 0 + 0 + 6 + + + + + + + + + + + STLink\ST-LINKIII-KEIL_SWO.dll + + + + 0 + UL2CM3 + UL2CM3(-S0 -C0 -P0 ) -FN1 -FC1000 -FD20000000 -FF0STM32L4xx_1024 -FL0100000 -FS08000000 -FP0($$Device:STM32L496VGTx$CMSIS\Flash\STM32L4xx_1024.FLM) + + + 0 + ST-LINKIII-KEIL_SWO + -U51FF68064965575333151687 -O206 -S1 -C0 -A0 -N00("ARM CoreSight SW-DP (ARM Core") -D00(1BA01477) -L00(0) -TO131090 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC1000 -FN1 -FF0STM32L4xx_1024 -FS08000000 -FL0100000 -FP0($$Device:STM32L496VGTx$CMSIS\Flash\STM32L4xx_1024.FLM) + + + + + 0 + + + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 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 + 1 + 0 + 0 + 0 + + 1 + 1 + 2 + 0 + 0 + 0 + .\startup_stm32l496xx.s + startup_stm32l496xx.s + 0 + 0 + + + + + Application/User + 1 + 0 + 0 + 0 + + 2 + 2 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\gpio.c + gpio.c + 0 + 0 + + + 2 + 3 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\main.c + main.c + 0 + 0 + + + 2 + 4 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\mcu_init.c + mcu_init.c + 0 + 0 + + + 2 + 5 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\usart.c + usart.c + 0 + 0 + + + 2 + 6 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\stm32l4xx_hal_msp.c + stm32l4xx_hal_msp.c + 0 + 0 + + + 2 + 7 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\stm32l4xx_it.c + stm32l4xx_it.c + 0 + 0 + + + 2 + 8 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\mymath.c + mymath.c + 0 + 0 + + + 2 + 9 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\i2c.c + i2c.c + 0 + 0 + + + 2 + 10 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\gps.c + gps.c + 0 + 0 + + + 2 + 11 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\tos_at_gps.c + tos_at_gps.c + 0 + 0 + + + + + Drivers/STM32L4xx_HAL_Driver + 0 + 0 + 0 + 0 + + 3 + 12 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal.c + stm32l4xx_hal.c + 0 + 0 + + + 3 + 13 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_adc.c + stm32l4xx_hal_adc.c + 0 + 0 + + + 3 + 14 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_adc_ex.c + stm32l4xx_hal_adc_ex.c + 0 + 0 + + + 3 + 15 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_can.c + stm32l4xx_hal_can.c + 0 + 0 + + + 3 + 16 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_comp.c + stm32l4xx_hal_comp.c + 0 + 0 + + + 3 + 17 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cortex.c + stm32l4xx_hal_cortex.c + 0 + 0 + + + 3 + 18 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_crc.c + stm32l4xx_hal_crc.c + 0 + 0 + + + 3 + 19 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_crc_ex.c + stm32l4xx_hal_crc_ex.c + 0 + 0 + + + 3 + 20 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cryp.c + stm32l4xx_hal_cryp.c + 0 + 0 + + + 3 + 21 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cryp_ex.c + stm32l4xx_hal_cryp_ex.c + 0 + 0 + + + 3 + 22 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dac.c + stm32l4xx_hal_dac.c + 0 + 0 + + + 3 + 23 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dac_ex.c + stm32l4xx_hal_dac_ex.c + 0 + 0 + + + 3 + 24 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dcmi.c + stm32l4xx_hal_dcmi.c + 0 + 0 + + + 3 + 25 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dfsdm.c + stm32l4xx_hal_dfsdm.c + 0 + 0 + + + 3 + 26 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dfsdm_ex.c + stm32l4xx_hal_dfsdm_ex.c + 0 + 0 + + + 3 + 27 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dma.c + stm32l4xx_hal_dma.c + 0 + 0 + + + 3 + 28 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dma_ex.c + stm32l4xx_hal_dma_ex.c + 0 + 0 + + + 3 + 29 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dma2d.c + stm32l4xx_hal_dma2d.c + 0 + 0 + + + 3 + 30 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dsi.c + stm32l4xx_hal_dsi.c + 0 + 0 + + + 3 + 31 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_exti.c + stm32l4xx_hal_exti.c + 0 + 0 + + + 3 + 32 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_firewall.c + stm32l4xx_hal_firewall.c + 0 + 0 + + + 3 + 33 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_flash.c + stm32l4xx_hal_flash.c + 0 + 0 + + + 3 + 34 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_flash_ex.c + stm32l4xx_hal_flash_ex.c + 0 + 0 + + + 3 + 35 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_flash_ramfunc.c + stm32l4xx_hal_flash_ramfunc.c + 0 + 0 + + + 3 + 36 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_gfxmmu.c + stm32l4xx_hal_gfxmmu.c + 0 + 0 + + + 3 + 37 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_gpio.c + stm32l4xx_hal_gpio.c + 0 + 0 + + + 3 + 38 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_hash.c + stm32l4xx_hal_hash.c + 0 + 0 + + + 3 + 39 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_hash_ex.c + stm32l4xx_hal_hash_ex.c + 0 + 0 + + + 3 + 40 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_hcd.c + stm32l4xx_hal_hcd.c + 0 + 0 + + + 3 + 41 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_i2c.c + stm32l4xx_hal_i2c.c + 0 + 0 + + + 3 + 42 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_i2c_ex.c + stm32l4xx_hal_i2c_ex.c + 0 + 0 + + + 3 + 43 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_irda.c + stm32l4xx_hal_irda.c + 0 + 0 + + + 3 + 44 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_iwdg.c + stm32l4xx_hal_iwdg.c + 0 + 0 + + + 3 + 45 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_lcd.c + stm32l4xx_hal_lcd.c + 0 + 0 + + + 3 + 46 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_lptim.c + stm32l4xx_hal_lptim.c + 0 + 0 + + + 3 + 47 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_ltdc.c + stm32l4xx_hal_ltdc.c + 0 + 0 + + + 3 + 48 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_ltdc_ex.c + stm32l4xx_hal_ltdc_ex.c + 0 + 0 + + + 3 + 49 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_nand.c + stm32l4xx_hal_nand.c + 0 + 0 + + + 3 + 50 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_nor.c + stm32l4xx_hal_nor.c + 0 + 0 + + + 3 + 51 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_opamp.c + stm32l4xx_hal_opamp.c + 0 + 0 + + + 3 + 52 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_opamp_ex.c + stm32l4xx_hal_opamp_ex.c + 0 + 0 + + + 3 + 53 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_ospi.c + stm32l4xx_hal_ospi.c + 0 + 0 + + + 3 + 54 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pcd.c + stm32l4xx_hal_pcd.c + 0 + 0 + + + 3 + 55 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pcd_ex.c + stm32l4xx_hal_pcd_ex.c + 0 + 0 + + + 3 + 56 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pwr.c + stm32l4xx_hal_pwr.c + 0 + 0 + + + 3 + 57 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pwr_ex.c + stm32l4xx_hal_pwr_ex.c + 0 + 0 + + + 3 + 58 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_qspi.c + stm32l4xx_hal_qspi.c + 0 + 0 + + + 3 + 59 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rcc.c + stm32l4xx_hal_rcc.c + 0 + 0 + + + 3 + 60 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rcc_ex.c + stm32l4xx_hal_rcc_ex.c + 0 + 0 + + + 3 + 61 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rng.c + stm32l4xx_hal_rng.c + 0 + 0 + + + 3 + 62 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rtc.c + stm32l4xx_hal_rtc.c + 0 + 0 + + + 3 + 63 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rtc_ex.c + stm32l4xx_hal_rtc_ex.c + 0 + 0 + + + 3 + 64 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_sai.c + stm32l4xx_hal_sai.c + 0 + 0 + + + 3 + 65 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_sai_ex.c + stm32l4xx_hal_sai_ex.c + 0 + 0 + + + 3 + 66 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_sd.c + stm32l4xx_hal_sd.c + 0 + 0 + + + 3 + 67 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_sd_ex.c + stm32l4xx_hal_sd_ex.c + 0 + 0 + + + 3 + 68 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_smartcard.c + stm32l4xx_hal_smartcard.c + 0 + 0 + + + 3 + 69 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_smartcard_ex.c + stm32l4xx_hal_smartcard_ex.c + 0 + 0 + + + 3 + 70 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_smbus.c + stm32l4xx_hal_smbus.c + 0 + 0 + + + 3 + 71 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_spi.c + stm32l4xx_hal_spi.c + 0 + 0 + + + 3 + 72 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_spi_ex.c + stm32l4xx_hal_spi_ex.c + 0 + 0 + + + 3 + 73 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_sram.c + stm32l4xx_hal_sram.c + 0 + 0 + + + 3 + 74 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_swpmi.c + stm32l4xx_hal_swpmi.c + 0 + 0 + + + 3 + 75 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_tim.c + stm32l4xx_hal_tim.c + 0 + 0 + + + 3 + 76 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_tim_ex.c + stm32l4xx_hal_tim_ex.c + 0 + 0 + + + 3 + 77 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_timebase_tim_template.c + stm32l4xx_hal_timebase_tim_template.c + 0 + 0 + + + 3 + 78 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_tsc.c + stm32l4xx_hal_tsc.c + 0 + 0 + + + 3 + 79 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_uart.c + stm32l4xx_hal_uart.c + 0 + 0 + + + 3 + 80 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_uart_ex.c + stm32l4xx_hal_uart_ex.c + 0 + 0 + + + 3 + 81 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_usart.c + stm32l4xx_hal_usart.c + 0 + 0 + + + 3 + 82 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_usart_ex.c + stm32l4xx_hal_usart_ex.c + 0 + 0 + + + 3 + 83 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_wwdg.c + stm32l4xx_hal_wwdg.c + 0 + 0 + + + 3 + 84 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_adc.c + stm32l4xx_ll_adc.c + 0 + 0 + + + 3 + 85 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_comp.c + stm32l4xx_ll_comp.c + 0 + 0 + + + 3 + 86 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_crc.c + stm32l4xx_ll_crc.c + 0 + 0 + + + 3 + 87 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_crs.c + stm32l4xx_ll_crs.c + 0 + 0 + + + 3 + 88 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_dac.c + stm32l4xx_ll_dac.c + 0 + 0 + + + 3 + 89 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_dma.c + stm32l4xx_ll_dma.c + 0 + 0 + + + 3 + 90 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_dma2d.c + stm32l4xx_ll_dma2d.c + 0 + 0 + + + 3 + 91 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_exti.c + stm32l4xx_ll_exti.c + 0 + 0 + + + 3 + 92 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_fmc.c + stm32l4xx_ll_fmc.c + 0 + 0 + + + 3 + 93 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_gpio.c + stm32l4xx_ll_gpio.c + 0 + 0 + + + 3 + 94 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_i2c.c + stm32l4xx_ll_i2c.c + 0 + 0 + + + 3 + 95 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_lptim.c + stm32l4xx_ll_lptim.c + 0 + 0 + + + 3 + 96 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_lpuart.c + stm32l4xx_ll_lpuart.c + 0 + 0 + + + 3 + 97 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_opamp.c + stm32l4xx_ll_opamp.c + 0 + 0 + + + 3 + 98 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_pwr.c + stm32l4xx_ll_pwr.c + 0 + 0 + + + 3 + 99 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_rcc.c + stm32l4xx_ll_rcc.c + 0 + 0 + + + 3 + 100 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_rng.c + stm32l4xx_ll_rng.c + 0 + 0 + + + 3 + 101 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_rtc.c + stm32l4xx_ll_rtc.c + 0 + 0 + + + 3 + 102 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_sdmmc.c + stm32l4xx_ll_sdmmc.c + 0 + 0 + + + 3 + 103 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_spi.c + stm32l4xx_ll_spi.c + 0 + 0 + + + 3 + 104 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_swpmi.c + stm32l4xx_ll_swpmi.c + 0 + 0 + + + 3 + 105 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_tim.c + stm32l4xx_ll_tim.c + 0 + 0 + + + 3 + 106 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_usart.c + stm32l4xx_ll_usart.c + 0 + 0 + + + 3 + 107 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_usb.c + stm32l4xx_ll_usb.c + 0 + 0 + + + 3 + 108 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_utils.c + stm32l4xx_ll_utils.c + 0 + 0 + + + + + Drivers/CMSIS + 1 + 0 + 0 + 0 + + 4 + 109 + 1 + 0 + 0 + 0 + ..\..\BSP\Src\system_stm32l4xx.c + system_stm32l4xx.c + 0 + 0 + + + + + tos/arch + 0 + 0 + 0 + 0 + + 5 + 110 + 1 + 0 + 0 + 0 + ..\..\..\..\arch\arm\arm-v7m\common\tos_cpu.c + tos_cpu.c + 0 + 0 + + + 5 + 111 + 1 + 0 + 0 + 0 + ..\..\..\..\arch\arm\arm-v7m\cortex-m4\armcc\port_c.c + port_c.c + 0 + 0 + + + 5 + 112 + 2 + 0 + 0 + 0 + ..\..\..\..\arch\arm\arm-v7m\cortex-m4\armcc\port_s.S + port_s.S + 0 + 0 + + + + + tos/kernel + 0 + 0 + 0 + 0 + + 6 + 113 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_event.c + tos_event.c + 0 + 0 + + + 6 + 114 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_global.c + tos_global.c + 0 + 0 + + + 6 + 115 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_mmblk.c + tos_mmblk.c + 0 + 0 + + + 6 + 116 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_mmheap.c + tos_mmheap.c + 0 + 0 + + + 6 + 117 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_mutex.c + tos_mutex.c + 0 + 0 + + + 6 + 118 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_pend.c + tos_pend.c + 0 + 0 + + + 6 + 119 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_robin.c + tos_robin.c + 0 + 0 + + + 6 + 120 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_sched.c + tos_sched.c + 0 + 0 + + + 6 + 121 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_sem.c + tos_sem.c + 0 + 0 + + + 6 + 122 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_sys.c + tos_sys.c + 0 + 0 + + + 6 + 123 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_task.c + tos_task.c + 0 + 0 + + + 6 + 124 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_tick.c + tos_tick.c + 0 + 0 + + + 6 + 125 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_time.c + tos_time.c + 0 + 0 + + + 6 + 126 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_timer.c + tos_timer.c + 0 + 0 + + + 6 + 127 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_binary_heap.c + tos_binary_heap.c + 0 + 0 + + + 6 + 128 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_char_fifo.c + tos_char_fifo.c + 0 + 0 + + + 6 + 129 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_completion.c + tos_completion.c + 0 + 0 + + + 6 + 130 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_countdownlatch.c + tos_countdownlatch.c + 0 + 0 + + + 6 + 131 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_mail_queue.c + tos_mail_queue.c + 0 + 0 + + + 6 + 132 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_message_queue.c + tos_message_queue.c + 0 + 0 + + + 6 + 133 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_priority_mail_queue.c + tos_priority_mail_queue.c + 0 + 0 + + + 6 + 134 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_priority_message_queue.c + tos_priority_message_queue.c + 0 + 0 + + + 6 + 135 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_priority_queue.c + tos_priority_queue.c + 0 + 0 + + + 6 + 136 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_ring_queue.c + tos_ring_queue.c + 0 + 0 + + + 6 + 137 + 1 + 0 + 0 + 0 + ..\..\..\..\kernel\core\tos_stopwatch.c + tos_stopwatch.c + 0 + 0 + + + + + tos/cmsis + 0 + 0 + 0 + 0 + + 7 + 138 + 1 + 0 + 0 + 0 + ..\..\..\..\osal\cmsis_os\cmsis_os.c + cmsis_os.c + 0 + 0 + + + + + tos/config + 1 + 0 + 0 + 0 + + 8 + 139 + 5 + 0 + 0 + 0 + ..\..\TOS_CONFIG\tos_config.h + tos_config.h + 0 + 0 + + + + + at + 1 + 0 + 0 + 0 + + 9 + 140 + 1 + 0 + 0 + 0 + ..\..\..\..\net\at\src\tos_at.c + tos_at.c + 0 + 0 + + + + + net + 1 + 0 + 0 + 0 + + 10 + 141 + 1 + 0 + 0 + 0 + ..\..\..\..\net\sal_module_wrapper\sal_module_wrapper.c + sal_module_wrapper.c + 0 + 0 + + + + + hal + 0 + 0 + 0 + 0 + + 11 + 142 + 1 + 0 + 0 + 0 + ..\..\..\..\platform\hal\st\stm32l4xx\src\tos_hal_uart.c + tos_hal_uart.c + 0 + 0 + + + + + devices + 1 + 0 + 0 + 0 + + 12 + 143 + 1 + 0 + 0 + 0 + ..\..\..\..\devices\m5313\m5313.c + m5313.c + 0 + 0 + + + + + app + 1 + 0 + 0 + 0 + + 13 + 144 + 1 + 0 + 0 + 0 + ..\..\BSP\app\mqttclient_iot_explorer_locator_ll.c + mqttclient_iot_explorer_locator_ll.c + 0 + 0 + + + + + mqttclient + 0 + 0 + 0 + 0 + + 14 + 145 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqttclient\mqttclient.c + mqttclient.c + 0 + 0 + + + + + mqttclient/mqtt + 0 + 0 + 0 + 0 + + 15 + 146 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTConnectClient.c + MQTTConnectClient.c + 0 + 0 + + + 15 + 147 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTConnectServer.c + MQTTConnectServer.c + 0 + 0 + + + 15 + 148 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTDeserializePublish.c + MQTTDeserializePublish.c + 0 + 0 + + + 15 + 149 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTFormat.c + MQTTFormat.c + 0 + 0 + + + 15 + 150 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTPacket.c + MQTTPacket.c + 0 + 0 + + + 15 + 151 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTSerializePublish.c + MQTTSerializePublish.c + 0 + 0 + + + 15 + 152 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTSubscribeClient.c + MQTTSubscribeClient.c + 0 + 0 + + + 15 + 153 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTSubscribeServer.c + MQTTSubscribeServer.c + 0 + 0 + + + 15 + 154 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTUnsubscribeClient.c + MQTTUnsubscribeClient.c + 0 + 0 + + + 15 + 155 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\mqtt\MQTTUnsubscribeServer.c + MQTTUnsubscribeServer.c + 0 + 0 + + + + + mqttclient/salof + 0 + 0 + 0 + 0 + + 16 + 156 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\common\log\arch\tencentos-tiny\arch.c + arch.c + 0 + 0 + + + 16 + 157 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\common\log\fifo.c + fifo.c + 0 + 0 + + + 16 + 158 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\common\log\format.c + format.c + 0 + 0 + + + 16 + 159 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\common\log\salof.c + salof.c + 0 + 0 + + + + + mqttclient/common + 0 + 0 + 0 + 0 + + 17 + 160 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\common\random.c + random.c + 0 + 0 + + + 17 + 161 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\common\mqtt_list.c + mqtt_list.c + 0 + 0 + + + + + mqttclient/network + 0 + 0 + 0 + 0 + + 18 + 162 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\network\network.c + network.c + 0 + 0 + + + 18 + 163 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\network\nettype_tcp.c + nettype_tcp.c + 0 + 0 + + + 18 + 164 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\network\nettype_tls.c + nettype_tls.c + 0 + 0 + + + + + mqttclient/platform + 0 + 0 + 0 + 0 + + 19 + 165 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_memory.c + platform_memory.c + 0 + 0 + + + 19 + 166 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_mutex.c + platform_mutex.c + 0 + 0 + + + 19 + 167 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_net_socket.c + platform_net_socket.c + 0 + 0 + + + 19 + 168 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_thread.c + platform_thread.c + 0 + 0 + + + 19 + 169 + 1 + 0 + 0 + 0 + ..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny\platform_timer.c + platform_timer.c + 0 + 0 + + + + + cjson + 0 + 0 + 0 + 0 + + 20 + 170 + 1 + 0 + 0 + 0 + ..\..\..\..\components\utils\JSON\src\cJSON.c + cJSON.c + 0 + 0 + + + + + ::CMSIS + 0 + 0 + 0 + 1 + + +
diff --git a/board/BDW01-STM32L496VG/KEIL/mqttclient_iot_explorer_locator_ll/BDW01-STM32L496VG.uvprojx b/board/BDW01-STM32L496VG/KEIL/mqttclient_iot_explorer_locator_ll/BDW01-STM32L496VG.uvprojx new file mode 100644 index 0000000000000000000000000000000000000000..694d1a39bf063482eaff98731bce25a3cb097931 --- /dev/null +++ b/board/BDW01-STM32L496VG/KEIL/mqttclient_iot_explorer_locator_ll/BDW01-STM32L496VG.uvprojx @@ -0,0 +1,1362 @@ + + + + 2.1 + +
### uVision Project, (C) Keil Software
+ + + + BDW01-STM32L496VG + 0x4 + ARM-ADS + 5060960::V5.06 update 7 (build 960)::.\ARMCC + 0 + + + STM32L496VGTx + STMicroelectronics + Keil.STM32L4xx_DFP.2.4.0 + https://www.keil.com/pack/ + IRAM(0x20000000,0x00040000) IRAM2(0x10000000,0x00010000) IROM(0x08000000,0x00100000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ELITTLE + + + UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32L4xx_1024 -FS08000000 -FL0100000 -FP0($$Device:STM32L496VGTx$CMSIS\Flash\STM32L4xx_1024.FLM)) + 0 + $$Device:STM32L496VGTx$Drivers\CMSIS\Device\ST\STM32L4xx\Include\stm32l4xx.h + + + + + + + + + + $$Device:STM32L496VGTx$CMSIS\SVD\STM32L4x6.svd + 0 + 0 + + + + + + + 0 + 0 + 0 + 0 + 1 + + .\app\ + BDW01-STM32L496VG-mqttclient_iot_explorer_location + 1 + 0 + 1 + 1 + 0 + + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 0 + + + SARMCM3.DLL + -REMAP -MPU + DCM.DLL + -pCM4 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM4 + + + + 1 + 0 + 0 + 0 + 16 + + + + + 1 + 0 + 0 + 1 + 1 + 4096 + + 1 + BIN\UL2CM3.DLL + "" () + + + + + 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 + 1 + 0 + 8 + 1 + 0 + 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 + 0x40000 + + + 1 + 0x8000000 + 0x100000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x8000000 + 0x100000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x40000 + + + 0 + 0x10000000 + 0x10000 + + + + + + 1 + 4 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 2 + 0 + 0 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + + + USE_HAL_DRIVER,STM32L496xx + + ..\..\BSP\Inc;..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Inc;..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Inc\Legacy;..\..\..\..\platform\vendor_bsp\st\CMSIS\Device\ST\STM32L4xx\Include;..\..\..\..\platform\vendor_bsp\st\CMSIS\Include;..\..\..\..\arch\arm\arm-v7m\common\include;..\..\..\..\arch\arm\arm-v7m\cortex-m4\armcc;..\..\..\..\kernel\core\include;..\..\..\..\kernel\pm\include;..\..\..\..\kernel\hal\include;..\..\..\..\osal\cmsis_os;..\..\TOS_CONFIG;..\..\..\..\devices\sht3x;..\..\..\..\devices\lsm6dsl;..\..\..\..\devices\l2832tsww;..\..\..\..\devices\4G_EC20;..\..\..\..\devices\gps;..\..\..\..\devices\m5313;..\..\..\..\net\at\include;..\..\..\..\net\sal_module_wrapper;..\..\..\..\net\4G_module_wrapper;..\..\..\..\net\lora_module_wrapper;..\..\..\..\net\passthrough;..\..\..\..\components\math;..\..\..\..\components\connectivity\mqttclient\common;..\..\..\..\components\connectivity\mqttclient\common\log;..\..\..\..\components\connectivity\mqttclient\mqtt;..\..\..\..\components\connectivity\mqttclient\mqttclient;..\..\..\..\components\connectivity\mqttclient\network;..\..\..\..\components\connectivity\mqttclient\platform\TencentOS-tiny;..\..\..\..\components\utils\JSON\include + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + + + + + + + + + 1 + 0 + 0 + 0 + 1 + 0 + 0x08000000 + 0x20000000 + + + + + + + + + + + + + Application/MDK-ARM + + + startup_stm32l496xx.s + 2 + .\startup_stm32l496xx.s + + + + + Application/User + + + gpio.c + 1 + ..\..\BSP\Src\gpio.c + + + main.c + 1 + ..\..\BSP\Src\main.c + + + mcu_init.c + 1 + ..\..\BSP\Src\mcu_init.c + + + usart.c + 1 + ..\..\BSP\Src\usart.c + + + stm32l4xx_hal_msp.c + 1 + ..\..\BSP\Src\stm32l4xx_hal_msp.c + + + stm32l4xx_it.c + 1 + ..\..\BSP\Src\stm32l4xx_it.c + + + mymath.c + 1 + ..\..\BSP\Src\mymath.c + + + i2c.c + 1 + ..\..\BSP\Src\i2c.c + + + gps.c + 1 + ..\..\BSP\Src\gps.c + + + tos_at_gps.c + 1 + ..\..\BSP\Src\tos_at_gps.c + + + + + Drivers/STM32L4xx_HAL_Driver + + + stm32l4xx_hal.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal.c + + + stm32l4xx_hal_adc.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_adc.c + + + stm32l4xx_hal_adc_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_adc_ex.c + + + stm32l4xx_hal_can.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_can.c + + + stm32l4xx_hal_comp.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_comp.c + + + stm32l4xx_hal_cortex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cortex.c + + + stm32l4xx_hal_crc.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_crc.c + + + stm32l4xx_hal_crc_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_crc_ex.c + + + stm32l4xx_hal_cryp.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cryp.c + + + stm32l4xx_hal_cryp_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cryp_ex.c + + + stm32l4xx_hal_dac.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dac.c + + + stm32l4xx_hal_dac_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dac_ex.c + + + stm32l4xx_hal_dcmi.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dcmi.c + + + stm32l4xx_hal_dfsdm.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dfsdm.c + + + stm32l4xx_hal_dfsdm_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dfsdm_ex.c + + + stm32l4xx_hal_dma.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dma.c + + + stm32l4xx_hal_dma_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dma_ex.c + + + stm32l4xx_hal_dma2d.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dma2d.c + + + stm32l4xx_hal_dsi.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dsi.c + + + stm32l4xx_hal_exti.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_exti.c + + + stm32l4xx_hal_firewall.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_firewall.c + + + stm32l4xx_hal_flash.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_flash.c + + + stm32l4xx_hal_flash_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_flash_ex.c + + + stm32l4xx_hal_flash_ramfunc.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_flash_ramfunc.c + + + stm32l4xx_hal_gfxmmu.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_gfxmmu.c + + + stm32l4xx_hal_gpio.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_gpio.c + + + stm32l4xx_hal_hash.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_hash.c + + + stm32l4xx_hal_hash_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_hash_ex.c + + + stm32l4xx_hal_hcd.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_hcd.c + + + stm32l4xx_hal_i2c.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_i2c.c + + + stm32l4xx_hal_i2c_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_i2c_ex.c + + + stm32l4xx_hal_irda.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_irda.c + + + stm32l4xx_hal_iwdg.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_iwdg.c + + + stm32l4xx_hal_lcd.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_lcd.c + + + stm32l4xx_hal_lptim.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_lptim.c + + + stm32l4xx_hal_ltdc.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_ltdc.c + + + stm32l4xx_hal_ltdc_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_ltdc_ex.c + + + stm32l4xx_hal_nand.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_nand.c + + + stm32l4xx_hal_nor.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_nor.c + + + stm32l4xx_hal_opamp.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_opamp.c + + + stm32l4xx_hal_opamp_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_opamp_ex.c + + + stm32l4xx_hal_ospi.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_ospi.c + + + stm32l4xx_hal_pcd.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pcd.c + + + stm32l4xx_hal_pcd_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pcd_ex.c + + + stm32l4xx_hal_pwr.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pwr.c + + + stm32l4xx_hal_pwr_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pwr_ex.c + + + stm32l4xx_hal_qspi.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_qspi.c + + + stm32l4xx_hal_rcc.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rcc.c + + + stm32l4xx_hal_rcc_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rcc_ex.c + + + stm32l4xx_hal_rng.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rng.c + + + stm32l4xx_hal_rtc.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rtc.c + + + stm32l4xx_hal_rtc_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rtc_ex.c + + + stm32l4xx_hal_sai.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_sai.c + + + stm32l4xx_hal_sai_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_sai_ex.c + + + stm32l4xx_hal_sd.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_sd.c + + + stm32l4xx_hal_sd_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_sd_ex.c + + + stm32l4xx_hal_smartcard.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_smartcard.c + + + stm32l4xx_hal_smartcard_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_smartcard_ex.c + + + stm32l4xx_hal_smbus.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_smbus.c + + + stm32l4xx_hal_spi.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_spi.c + + + stm32l4xx_hal_spi_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_spi_ex.c + + + stm32l4xx_hal_sram.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_sram.c + + + stm32l4xx_hal_swpmi.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_swpmi.c + + + stm32l4xx_hal_tim.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_tim.c + + + stm32l4xx_hal_tim_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_tim_ex.c + + + stm32l4xx_hal_timebase_tim_template.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_timebase_tim_template.c + + + stm32l4xx_hal_tsc.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_tsc.c + + + stm32l4xx_hal_uart.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_uart.c + + + stm32l4xx_hal_uart_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_uart_ex.c + + + stm32l4xx_hal_usart.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_usart.c + + + stm32l4xx_hal_usart_ex.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_usart_ex.c + + + stm32l4xx_hal_wwdg.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_wwdg.c + + + stm32l4xx_ll_adc.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_adc.c + + + stm32l4xx_ll_comp.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_comp.c + + + stm32l4xx_ll_crc.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_crc.c + + + stm32l4xx_ll_crs.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_crs.c + + + stm32l4xx_ll_dac.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_dac.c + + + stm32l4xx_ll_dma.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_dma.c + + + stm32l4xx_ll_dma2d.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_dma2d.c + + + stm32l4xx_ll_exti.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_exti.c + + + stm32l4xx_ll_fmc.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_fmc.c + + + stm32l4xx_ll_gpio.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_gpio.c + + + stm32l4xx_ll_i2c.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_i2c.c + + + stm32l4xx_ll_lptim.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_lptim.c + + + stm32l4xx_ll_lpuart.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_lpuart.c + + + stm32l4xx_ll_opamp.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_opamp.c + + + stm32l4xx_ll_pwr.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_pwr.c + + + stm32l4xx_ll_rcc.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_rcc.c + + + stm32l4xx_ll_rng.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_rng.c + + + stm32l4xx_ll_rtc.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_rtc.c + + + stm32l4xx_ll_sdmmc.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_sdmmc.c + + + stm32l4xx_ll_spi.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_spi.c + + + stm32l4xx_ll_swpmi.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_swpmi.c + + + stm32l4xx_ll_tim.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_tim.c + + + stm32l4xx_ll_usart.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_usart.c + + + stm32l4xx_ll_usb.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_usb.c + + + stm32l4xx_ll_utils.c + 1 + ..\..\..\..\platform\vendor_bsp\st\STM32L4xx_HAL_Driver\Src\stm32l4xx_ll_utils.c + + + + + Drivers/CMSIS + + + system_stm32l4xx.c + 1 + ..\..\BSP\Src\system_stm32l4xx.c + + + + + tos/arch + + + tos_cpu.c + 1 + ..\..\..\..\arch\arm\arm-v7m\common\tos_cpu.c + + + 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/kernel + + + 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_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 + + + 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_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_stopwatch.c + 1 + ..\..\..\..\kernel\core\tos_stopwatch.c + + + + + tos/cmsis + + + cmsis_os.c + 1 + ..\..\..\..\osal\cmsis_os\cmsis_os.c + + + + + tos/config + + + tos_config.h + 5 + ..\..\TOS_CONFIG\tos_config.h + + + + + at + + + tos_at.c + 1 + ..\..\..\..\net\at\src\tos_at.c + + + + + net + + + sal_module_wrapper.c + 1 + ..\..\..\..\net\sal_module_wrapper\sal_module_wrapper.c + + + + + hal + + + tos_hal_uart.c + 1 + ..\..\..\..\platform\hal\st\stm32l4xx\src\tos_hal_uart.c + + + + + devices + + + m5313.c + 1 + ..\..\..\..\devices\m5313\m5313.c + + + + + app + + + mqttclient_iot_explorer_locator_ll.c + 1 + ..\..\BSP\app\mqttclient_iot_explorer_locator_ll.c + + + + + mqttclient + + + mqttclient.c + 1 + ..\..\..\..\components\connectivity\mqttclient\mqttclient\mqttclient.c + + + + + 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/salof + + + arch.c + 1 + ..\..\..\..\components\connectivity\mqttclient\common\log\arch\tencentos-tiny\arch.c + + + fifo.c + 1 + ..\..\..\..\components\connectivity\mqttclient\common\log\fifo.c + + + format.c + 1 + ..\..\..\..\components\connectivity\mqttclient\common\log\format.c + + + salof.c + 1 + ..\..\..\..\components\connectivity\mqttclient\common\log\salof.c + + + + + mqttclient/common + + + random.c + 1 + ..\..\..\..\components\connectivity\mqttclient\common\random.c + + + mqtt_list.c + 1 + ..\..\..\..\components\connectivity\mqttclient\common\mqtt_list.c + + + + + mqttclient/network + + + network.c + 1 + ..\..\..\..\components\connectivity\mqttclient\network\network.c + + + nettype_tcp.c + 1 + ..\..\..\..\components\connectivity\mqttclient\network\nettype_tcp.c + + + nettype_tls.c + 1 + ..\..\..\..\components\connectivity\mqttclient\network\nettype_tls.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_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 + + + + + cjson + + + cJSON.c + 1 + ..\..\..\..\components\utils\JSON\src\cJSON.c + + + + + ::CMSIS + + + + + + + + + + + + + + + + + + + + + + BDW01-STM32L496VG + 1 + + + + +
diff --git a/board/BDW01-STM32L496VG/KEIL/mqttclient_iot_explorer_locator_ll/startup_stm32l496xx.s b/board/BDW01-STM32L496VG/KEIL/mqttclient_iot_explorer_locator_ll/startup_stm32l496xx.s new file mode 100644 index 0000000000000000000000000000000000000000..7ed6a1e33667d90a21e9574660e8c09070b54360 --- /dev/null +++ b/board/BDW01-STM32L496VG/KEIL/mqttclient_iot_explorer_locator_ll/startup_stm32l496xx.s @@ -0,0 +1,451 @@ +;******************************************************************************* +;* File Name : startup_stm32l496xx.s +;* Author : MCD Application Team +;* Description : STM32L496xx Ultra Low Power devices vector table for MDK-ARM toolchain. +;* This module performs: +;* - Set the initial SP +;* - Set the initial PC == Reset_Handler +;* - Set the vector table entries with the exceptions ISR address +;* - Branches to __main in the C library (which eventually +;* calls main()). +;* After Reset the Cortex-M4 processor is in Thread mode, +;* priority is Privileged, and the Stack is set to Main. +;* <<< Use Configuration Wizard in Context Menu >>> +;******************************************************************************* +;* @attention +;* +;* Copyright (c) 2017 STMicroelectronics. +;* All rights reserved. +;* +;* This software component is licensed by ST under BSD 3-Clause license, +;* the "License"; You may not use this file except in compliance with the +;* License. You may obtain a copy of the License at: +;* opensource.org/licenses/BSD-3-Clause +;* +;******************************************************************************* +; +; Amount of memory (in bytes) allocated for Stack +; Tailor this value to your application needs +; Stack Configuration +; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> +; + +Stack_Size EQU 0x8000 + + AREA STACK, NOINIT, READWRITE, ALIGN=3 +Stack_Mem SPACE Stack_Size +__initial_sp + + +; Heap Configuration +; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> +; + +Heap_Size EQU 0x8000 + + AREA HEAP, NOINIT, READWRITE, ALIGN=3 +__heap_base +Heap_Mem SPACE Heap_Size +__heap_limit + + PRESERVE8 + THUMB + + +; Vector Table Mapped to Address 0 at Reset + AREA RESET, DATA, READONLY + EXPORT __Vectors + EXPORT __Vectors_End + EXPORT __Vectors_Size + +__Vectors DCD __initial_sp ; Top of Stack + DCD Reset_Handler ; Reset Handler + DCD NMI_Handler ; NMI Handler + DCD HardFault_Handler ; Hard Fault Handler + DCD MemManage_Handler ; MPU Fault Handler + DCD BusFault_Handler ; Bus Fault Handler + DCD UsageFault_Handler ; Usage Fault Handler + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD 0 ; Reserved + DCD SVC_Handler ; SVCall Handler + DCD DebugMon_Handler ; Debug Monitor Handler + DCD 0 ; Reserved + DCD PendSV_Handler ; PendSV Handler + DCD SysTick_Handler ; SysTick Handler + + ; External Interrupts + DCD WWDG_IRQHandler ; Window WatchDog + DCD PVD_PVM_IRQHandler ; PVD/PVM1/PVM2/PVM3/PVM4 through EXTI Line detection + DCD TAMP_STAMP_IRQHandler ; Tamper and TimeStamps through the EXTI line + DCD RTC_WKUP_IRQHandler ; RTC Wakeup through the EXTI line + DCD FLASH_IRQHandler ; FLASH + DCD RCC_IRQHandler ; RCC + DCD EXTI0_IRQHandler ; EXTI Line0 + DCD EXTI1_IRQHandler ; EXTI Line1 + DCD EXTI2_IRQHandler ; EXTI Line2 + DCD EXTI3_IRQHandler ; EXTI Line3 + DCD EXTI4_IRQHandler ; EXTI Line4 + DCD DMA1_Channel1_IRQHandler ; DMA1 Channel 1 + DCD DMA1_Channel2_IRQHandler ; DMA1 Channel 2 + DCD DMA1_Channel3_IRQHandler ; DMA1 Channel 3 + DCD DMA1_Channel4_IRQHandler ; DMA1 Channel 4 + DCD DMA1_Channel5_IRQHandler ; DMA1 Channel 5 + DCD DMA1_Channel6_IRQHandler ; DMA1 Channel 6 + DCD DMA1_Channel7_IRQHandler ; DMA1 Channel 7 + DCD ADC1_2_IRQHandler ; ADC1, ADC2 + DCD CAN1_TX_IRQHandler ; CAN1 TX + DCD CAN1_RX0_IRQHandler ; CAN1 RX0 + DCD CAN1_RX1_IRQHandler ; CAN1 RX1 + DCD CAN1_SCE_IRQHandler ; CAN1 SCE + DCD EXTI9_5_IRQHandler ; External Line[9:5]s + DCD TIM1_BRK_TIM15_IRQHandler ; TIM1 Break and TIM15 + DCD TIM1_UP_TIM16_IRQHandler ; TIM1 Update and TIM16 + DCD TIM1_TRG_COM_TIM17_IRQHandler ; TIM1 Trigger and Commutation and TIM17 + DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare + DCD TIM2_IRQHandler ; TIM2 + DCD TIM3_IRQHandler ; TIM3 + DCD TIM4_IRQHandler ; TIM4 + DCD I2C1_EV_IRQHandler ; I2C1 Event + DCD I2C1_ER_IRQHandler ; I2C1 Error + DCD I2C2_EV_IRQHandler ; I2C2 Event + DCD I2C2_ER_IRQHandler ; I2C2 Error + DCD SPI1_IRQHandler ; SPI1 + DCD SPI2_IRQHandler ; SPI2 + DCD USART1_IRQHandler ; USART1 + DCD USART2_IRQHandler ; USART2 + DCD USART3_IRQHandler ; USART3 + DCD EXTI15_10_IRQHandler ; External Line[15:10] + DCD RTC_Alarm_IRQHandler ; RTC Alarm (A and B) through EXTI Line + DCD DFSDM1_FLT3_IRQHandler ; DFSDM1 Filter 3 global Interrupt + DCD TIM8_BRK_IRQHandler ; TIM8 Break Interrupt + DCD TIM8_UP_IRQHandler ; TIM8 Update Interrupt + DCD TIM8_TRG_COM_IRQHandler ; TIM8 Trigger and Commutation Interrupt + DCD TIM8_CC_IRQHandler ; TIM8 Capture Compare Interrupt + DCD ADC3_IRQHandler ; ADC3 global Interrupt + DCD FMC_IRQHandler ; FMC + DCD SDMMC1_IRQHandler ; SDMMC1 + DCD TIM5_IRQHandler ; TIM5 + DCD SPI3_IRQHandler ; SPI3 + DCD UART4_IRQHandler ; UART4 + DCD UART5_IRQHandler ; UART5 + DCD TIM6_DAC_IRQHandler ; TIM6 and DAC1&2 underrun errors + DCD TIM7_IRQHandler ; TIM7 + DCD DMA2_Channel1_IRQHandler ; DMA2 Channel 1 + DCD DMA2_Channel2_IRQHandler ; DMA2 Channel 2 + DCD DMA2_Channel3_IRQHandler ; DMA2 Channel 3 + DCD DMA2_Channel4_IRQHandler ; DMA2 Channel 4 + DCD DMA2_Channel5_IRQHandler ; DMA2 Channel 5 + DCD DFSDM1_FLT0_IRQHandler ; DFSDM1 Filter 0 global Interrupt + DCD DFSDM1_FLT1_IRQHandler ; DFSDM1 Filter 1 global Interrupt + DCD DFSDM1_FLT2_IRQHandler ; DFSDM1 Filter 2 global Interrupt + DCD COMP_IRQHandler ; COMP Interrupt + DCD LPTIM1_IRQHandler ; LP TIM1 interrupt + DCD LPTIM2_IRQHandler ; LP TIM2 interrupt + DCD OTG_FS_IRQHandler ; USB OTG FS + DCD DMA2_Channel6_IRQHandler ; DMA2 Channel 6 + DCD DMA2_Channel7_IRQHandler ; DMA2 Channel 7 + DCD LPUART1_IRQHandler ; LP UART1 interrupt + DCD QUADSPI_IRQHandler ; Quad SPI global interrupt + DCD I2C3_EV_IRQHandler ; I2C3 event + DCD I2C3_ER_IRQHandler ; I2C3 error + DCD SAI1_IRQHandler ; Serial Audio Interface 1 global interrupt + DCD SAI2_IRQHandler ; Serial Audio Interface 2 global interrupt + DCD SWPMI1_IRQHandler ; Serial Wire Interface 1 global interrupt + DCD TSC_IRQHandler ; Touch Sense Controller global interrupt + DCD LCD_IRQHandler ; LCD global interrupt + DCD 0 ; Reserved + DCD RNG_IRQHandler ; RNG global interrupt + DCD FPU_IRQHandler ; FPU + DCD CRS_IRQHandler ; CRS error + DCD I2C4_EV_IRQHandler ; I2C4 event + DCD I2C4_ER_IRQHandler ; I2C4 error + DCD DCMI_IRQHandler ; DCMI global interrupt + DCD CAN2_TX_IRQHandler ; CAN2 TX + DCD CAN2_RX0_IRQHandler ; CAN2 RX0 + DCD CAN2_RX1_IRQHandler ; CAN2 RX1 + DCD CAN2_SCE_IRQHandler ; CAN2 SCE + DCD DMA2D_IRQHandler ; DMA2D global interrupt + +__Vectors_End + +__Vectors_Size EQU __Vectors_End - __Vectors + + AREA |.text|, CODE, READONLY + +; Reset handler +Reset_Handler PROC + EXPORT Reset_Handler [WEAK] + IMPORT SystemInit + IMPORT __main + + LDR R0, =SystemInit + BLX R0 + LDR R0, =__main + BX R0 + ENDP + +; Dummy Exception Handlers (infinite loops which can be modified) + +NMI_Handler PROC + EXPORT NMI_Handler [WEAK] + B . + ENDP +HardFault_Handler\ + PROC + EXPORT HardFault_Handler [WEAK] + B . + ENDP +MemManage_Handler\ + PROC + EXPORT MemManage_Handler [WEAK] + B . + ENDP +BusFault_Handler\ + PROC + EXPORT BusFault_Handler [WEAK] + B . + ENDP +UsageFault_Handler\ + PROC + EXPORT UsageFault_Handler [WEAK] + B . + ENDP +SVC_Handler PROC + EXPORT SVC_Handler [WEAK] + B . + ENDP +DebugMon_Handler\ + PROC + EXPORT DebugMon_Handler [WEAK] + B . + ENDP +PendSV_Handler PROC + EXPORT PendSV_Handler [WEAK] + B . + ENDP +SysTick_Handler PROC + EXPORT SysTick_Handler [WEAK] + B . + ENDP + +Default_Handler PROC + + EXPORT WWDG_IRQHandler [WEAK] + EXPORT PVD_PVM_IRQHandler [WEAK] + EXPORT TAMP_STAMP_IRQHandler [WEAK] + EXPORT RTC_WKUP_IRQHandler [WEAK] + EXPORT FLASH_IRQHandler [WEAK] + EXPORT RCC_IRQHandler [WEAK] + EXPORT EXTI0_IRQHandler [WEAK] + EXPORT EXTI1_IRQHandler [WEAK] + EXPORT EXTI2_IRQHandler [WEAK] + EXPORT EXTI3_IRQHandler [WEAK] + EXPORT EXTI4_IRQHandler [WEAK] + EXPORT DMA1_Channel1_IRQHandler [WEAK] + EXPORT DMA1_Channel2_IRQHandler [WEAK] + EXPORT DMA1_Channel3_IRQHandler [WEAK] + EXPORT DMA1_Channel4_IRQHandler [WEAK] + EXPORT DMA1_Channel5_IRQHandler [WEAK] + EXPORT DMA1_Channel6_IRQHandler [WEAK] + EXPORT DMA1_Channel7_IRQHandler [WEAK] + EXPORT ADC1_2_IRQHandler [WEAK] + EXPORT CAN1_TX_IRQHandler [WEAK] + EXPORT CAN1_RX0_IRQHandler [WEAK] + EXPORT CAN1_RX1_IRQHandler [WEAK] + EXPORT CAN1_SCE_IRQHandler [WEAK] + EXPORT EXTI9_5_IRQHandler [WEAK] + EXPORT TIM1_BRK_TIM15_IRQHandler [WEAK] + EXPORT TIM1_UP_TIM16_IRQHandler [WEAK] + EXPORT TIM1_TRG_COM_TIM17_IRQHandler [WEAK] + EXPORT TIM1_CC_IRQHandler [WEAK] + EXPORT TIM2_IRQHandler [WEAK] + EXPORT TIM3_IRQHandler [WEAK] + EXPORT TIM4_IRQHandler [WEAK] + EXPORT I2C1_EV_IRQHandler [WEAK] + EXPORT I2C1_ER_IRQHandler [WEAK] + EXPORT I2C2_EV_IRQHandler [WEAK] + EXPORT I2C2_ER_IRQHandler [WEAK] + EXPORT SPI1_IRQHandler [WEAK] + EXPORT SPI2_IRQHandler [WEAK] + EXPORT USART1_IRQHandler [WEAK] + EXPORT USART2_IRQHandler [WEAK] + EXPORT USART3_IRQHandler [WEAK] + EXPORT EXTI15_10_IRQHandler [WEAK] + EXPORT RTC_Alarm_IRQHandler [WEAK] + EXPORT DFSDM1_FLT3_IRQHandler [WEAK] + EXPORT TIM8_BRK_IRQHandler [WEAK] + EXPORT TIM8_UP_IRQHandler [WEAK] + EXPORT TIM8_TRG_COM_IRQHandler [WEAK] + EXPORT TIM8_CC_IRQHandler [WEAK] + EXPORT ADC3_IRQHandler [WEAK] + EXPORT FMC_IRQHandler [WEAK] + EXPORT SDMMC1_IRQHandler [WEAK] + EXPORT TIM5_IRQHandler [WEAK] + EXPORT SPI3_IRQHandler [WEAK] + EXPORT UART4_IRQHandler [WEAK] + EXPORT UART5_IRQHandler [WEAK] + EXPORT TIM6_DAC_IRQHandler [WEAK] + EXPORT TIM7_IRQHandler [WEAK] + EXPORT DMA2_Channel1_IRQHandler [WEAK] + EXPORT DMA2_Channel2_IRQHandler [WEAK] + EXPORT DMA2_Channel3_IRQHandler [WEAK] + EXPORT DMA2_Channel4_IRQHandler [WEAK] + EXPORT DMA2_Channel5_IRQHandler [WEAK] + EXPORT DFSDM1_FLT0_IRQHandler [WEAK] + EXPORT DFSDM1_FLT1_IRQHandler [WEAK] + EXPORT DFSDM1_FLT2_IRQHandler [WEAK] + EXPORT COMP_IRQHandler [WEAK] + EXPORT LPTIM1_IRQHandler [WEAK] + EXPORT LPTIM2_IRQHandler [WEAK] + EXPORT OTG_FS_IRQHandler [WEAK] + EXPORT DMA2_Channel6_IRQHandler [WEAK] + EXPORT DMA2_Channel7_IRQHandler [WEAK] + EXPORT LPUART1_IRQHandler [WEAK] + EXPORT QUADSPI_IRQHandler [WEAK] + EXPORT I2C3_EV_IRQHandler [WEAK] + EXPORT I2C3_ER_IRQHandler [WEAK] + EXPORT SAI1_IRQHandler [WEAK] + EXPORT SAI2_IRQHandler [WEAK] + EXPORT SWPMI1_IRQHandler [WEAK] + EXPORT TSC_IRQHandler [WEAK] + EXPORT LCD_IRQHandler [WEAK] + EXPORT RNG_IRQHandler [WEAK] + EXPORT FPU_IRQHandler [WEAK] + EXPORT CRS_IRQHandler [WEAK] + EXPORT I2C4_EV_IRQHandler [WEAK] + EXPORT I2C4_ER_IRQHandler [WEAK] + EXPORT DCMI_IRQHandler [WEAK] + EXPORT CAN2_TX_IRQHandler [WEAK] + EXPORT CAN2_RX0_IRQHandler [WEAK] + EXPORT CAN2_RX1_IRQHandler [WEAK] + EXPORT CAN2_SCE_IRQHandler [WEAK] + EXPORT DMA2D_IRQHandler [WEAK] + +WWDG_IRQHandler +PVD_PVM_IRQHandler +TAMP_STAMP_IRQHandler +RTC_WKUP_IRQHandler +FLASH_IRQHandler +RCC_IRQHandler +EXTI0_IRQHandler +EXTI1_IRQHandler +EXTI2_IRQHandler +EXTI3_IRQHandler +EXTI4_IRQHandler +DMA1_Channel1_IRQHandler +DMA1_Channel2_IRQHandler +DMA1_Channel3_IRQHandler +DMA1_Channel4_IRQHandler +DMA1_Channel5_IRQHandler +DMA1_Channel6_IRQHandler +DMA1_Channel7_IRQHandler +ADC1_2_IRQHandler +CAN1_TX_IRQHandler +CAN1_RX0_IRQHandler +CAN1_RX1_IRQHandler +CAN1_SCE_IRQHandler +EXTI9_5_IRQHandler +TIM1_BRK_TIM15_IRQHandler +TIM1_UP_TIM16_IRQHandler +TIM1_TRG_COM_TIM17_IRQHandler +TIM1_CC_IRQHandler +TIM2_IRQHandler +TIM3_IRQHandler +TIM4_IRQHandler +I2C1_EV_IRQHandler +I2C1_ER_IRQHandler +I2C2_EV_IRQHandler +I2C2_ER_IRQHandler +SPI1_IRQHandler +SPI2_IRQHandler +USART1_IRQHandler +USART2_IRQHandler +USART3_IRQHandler +EXTI15_10_IRQHandler +RTC_Alarm_IRQHandler +DFSDM1_FLT3_IRQHandler +TIM8_BRK_IRQHandler +TIM8_UP_IRQHandler +TIM8_TRG_COM_IRQHandler +TIM8_CC_IRQHandler +ADC3_IRQHandler +FMC_IRQHandler +SDMMC1_IRQHandler +TIM5_IRQHandler +SPI3_IRQHandler +UART4_IRQHandler +UART5_IRQHandler +TIM6_DAC_IRQHandler +TIM7_IRQHandler +DMA2_Channel1_IRQHandler +DMA2_Channel2_IRQHandler +DMA2_Channel3_IRQHandler +DMA2_Channel4_IRQHandler +DMA2_Channel5_IRQHandler +DFSDM1_FLT0_IRQHandler +DFSDM1_FLT1_IRQHandler +DFSDM1_FLT2_IRQHandler +COMP_IRQHandler +LPTIM1_IRQHandler +LPTIM2_IRQHandler +OTG_FS_IRQHandler +DMA2_Channel6_IRQHandler +DMA2_Channel7_IRQHandler +LPUART1_IRQHandler +QUADSPI_IRQHandler +I2C3_EV_IRQHandler +I2C3_ER_IRQHandler +SAI1_IRQHandler +SAI2_IRQHandler +SWPMI1_IRQHandler +TSC_IRQHandler +LCD_IRQHandler +RNG_IRQHandler +FPU_IRQHandler +CRS_IRQHandler +I2C4_EV_IRQHandler +I2C4_ER_IRQHandler +DCMI_IRQHandler +CAN2_TX_IRQHandler +CAN2_RX0_IRQHandler +CAN2_RX1_IRQHandler +CAN2_SCE_IRQHandler +DMA2D_IRQHandler + + B . + + ENDP + + ALIGN + +;******************************************************************************* +; User Stack and Heap initialization +;******************************************************************************* + IF :DEF:__MICROLIB + + EXPORT __initial_sp + EXPORT __heap_base + EXPORT __heap_limit + + ELSE + + IMPORT __use_two_region_memory + EXPORT __user_initial_stackheap + +__user_initial_stackheap + + LDR R0, = Heap_Mem + LDR R1, =(Stack_Mem + Stack_Size) + LDR R2, = (Heap_Mem + Heap_Size) + LDR R3, = Stack_Mem + BX LR + + ALIGN + + ENDIF + + END + +;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE***** diff --git "a/board/BDW01-STM32L496VG/doc/5.\345\257\271\346\216\245\350\205\276\350\256\257\344\272\221\344\270\216\350\205\276\350\256\257\350\277\236\350\277\236-\345\256\232\344\275\215\345\231\250.md" "b/board/BDW01-STM32L496VG/doc/5.\345\257\271\346\216\245\350\205\276\350\256\257\344\272\221\344\270\216\350\205\276\350\256\257\350\277\236\350\277\236-\345\256\232\344\275\215\345\231\250.md" new file mode 100644 index 0000000000000000000000000000000000000000..e93053ed1627941d02c0934a1e65eaa41895bc6c --- /dev/null +++ "b/board/BDW01-STM32L496VG/doc/5.\345\257\271\346\216\245\350\205\276\350\256\257\344\272\221\344\270\216\350\205\276\350\256\257\350\277\236\350\277\236-\345\256\232\344\275\215\345\231\250.md" @@ -0,0 +1,314 @@ +# 瀹氫綅鍣 +鍦ㄧ墿鍝併佹灙鏀佺數鍔ㄨ溅绛夐渶瑕佸疄鏃惰拷韪殑棰嗗煙锛屾垜浠渶瑕佽幏鍙栧畾浣嶆暟鎹苟涓婁紶鍒颁簯绔垨鎵嬫満绔紝浠庤屽彲浠ユ煡鐪嬫墍鍦ㄤ綅缃 + +鍦˙DW01寮鍙戞澘涓婏紝鍩轰簬TencentOS Tiny锛岄氳繃涓寰畾浣嶆ā鍧楋紝鑾峰彇鍒癎PS鎴栧寳鏂楀畾浣嶏紝鐒跺悗閫氳繃2G妯″潡灏嗗畾浣嶄笂浼犲埌鑵捐浜戯紝骞堕氳繃寰俊灏忕▼搴忚吘璁繛杩炴煡鐪嬪疄鏃朵綅缃 + +---------- +# 涓銆佸紑鍙戞澘BDW01鍏ラ棬浠嬬粛 +## 1. 寮鍙戞澘鐗规 +BDW01鐗╄仈缃戝紑鍙戞澘鐨勬澘杞借祫婧愬涓嬶細 +![](./image/board.png) +涓绘帶鑺墖閲囩敤STM32L4VGTx锛孎lash绌洪棿澶у皬1MB锛孲RAM绌洪棿澶у皬320KB锛 + +- 鏉胯浇涓Щ鐗╄仈NB-IOT妯$粍M5313锛 +- 鏉胯浇涓寰寳鏂楀畾浣嶆ā缁凙TGM336H锛 +- 鏉胯浇鐜鍏夋娴嬩紶鎰熷櫒TMD27713; +- 鏉胯浇鍘嬪姏浼犳劅鍣˙MP280; +- 鏉胯浇娓╂箍搴︿紶鎰熷櫒SHT3X; +- 鏉胯浇3D鍔犻熷害闄铻轰华浼犳劅鍣↙SM6DSL; +- 鏉胯浇纾佸姏璁′紶鎰熷櫒MMC3680KJ; +- 鏉胯浇E43鎺ュ彛鍙墿灞曞叾浠栨棤绾块氫俊妯″潡锛 +- 鏉胯浇E32鎺ュ彛鍙墿灞曞叾浠栧畾浣嶆ā鍧楋紱 +- 鏉胯浇E53浼犳劅鍣ㄦ爣鍑嗘帴鍙o紝鏂逛究杩炴帴鍚勭E53浼犳劅鍣紱 +- 鏉胯浇0.91'OLED鏄剧ず灞忓箷锛 +- 鏉胯浇鏂板璇绾块煶璇嗗埆妯″潡ISD9160锛 +- 鏉胯浇TF鍗″崱搴э紝鏂逛究鎵╁睍瀛樺偍绌洪棿锛 +- 鏉胯浇MINI PCIE鎺ュ彛锛屾柟渚胯繛鎺4G閫氫俊妯″潡锛 +- 鏉胯浇18650閿傜數姹犳彃搴э紝鏂逛究绉诲姩鏃舵甯镐緵鐢碉紱 +- 鏉胯浇CH340杞覆鍙h繛鎺ワ紝鍙互浣跨敤涓鏍筓SB绾胯繛鎺ヨ嚦鐢佃剳锛屾煡鐪嬩覆鍙f棩蹇; + +鍏充簬寮鍙戞澘纭欢鐢佃矾鐨勬洿澶氫俊鎭拰璇﹁В锛岃鏌ョ湅鏂囨。BDW01涓绘澘瑙勬牸涔﹀拰鍘熺悊鍥俱 +## 2.鍘熺悊鍥 +鍏抽敭鍘熷浘鍥惧涓嬶細 +M5313锛氶氳妯″潡 +![](./image/sch01.png) +ATGM336H锛氫腑绉戝井瀹氫綅妯″潡 +![](./image/sch02.png) +## 3. 寮鍙戞澘纭欢鍑嗗 +### 3.1 杩炴帴LOG USB绾 +![](./image/logusb.png) +### 3.2 杩炴帴ST-Link鐑у綍鍣 +瀵圭収鐑у綍鍣ㄥ紩鑴氬浘鍜屽紑鍙戞澘鍘熺悊鍥撅紝鎵惧埌寮鍙戞澘涓婄殑缃戠粶鏍囧彿SW11,杩炴帴濡備笅: +**娉ㄦ剰鐢垫簮姝h礋鏋佷笉瑕佹帴鍙嶆帴閿欙紝閬垮厤鐑ф帀MCU鍜岀儳褰曞櫒銆** +![](./image/st-link.png) + +- 寮鍙戞澘VCC(3v3) ---> STlink聽 3.3V +- 寮鍙戞澘ST_SWDIO ---> STlink聽 SWDIO +- 寮鍙戞澘ST_SWCLK ---> STlink聽 SWCLK +- 寮鍙戞澘GND ---> STlink聽 GND + +## 4. 寮鍙戣蒋浠剁殑鐜鍑嗗 +### 4.1 杞欢寮鍙戝伐鍏风殑涓嬭浇瀹夎 +鎴戜滑浣跨敤鐨勮蒋浠跺紑鍙戝伐鍏锋槸Keil鍏徃鐨凪DK(Microcontroller Development kit)锛孧DK瀹樼綉涓嬭浇鍦板潃锛歔http://www2.keil.com/mdk5](http://www2.keil.com/mdk5) + +涓嬭浇鐨勭増鏈渶濂藉湪5.24鎴5.24浠ヤ笂锛屾湰娆′粙缁嶄互5.25鐗堟湰涓轰緥锛屽弻鍑籑DK524搴旂敤绋嬪簭鏂囦欢锛屾帴鐫鐐瑰嚮next>>銆 + +![](./image/mtkdl01.png) + +鍦↖ agree鍓嶉潰鐨勫皬鏂规鎵撳嬀锛岃〃绀哄悓鎰忚瀹夎鍗忚锛屽啀鐐瑰嚮next>>銆 + +![](./image/mtkdl02.png) + +閫夋嫨瀹夎璺緞锛岄粯璁ゆ儏鍐典笅浼氬畨瑁呭湪绯荤粺鐩楥鐩橈紝寤鸿鍦ㄥ叾浠栫洏寤虹珛鍗曠嫭鐨勬枃浠跺す锛屽苟閫夋嫨瀹夎鍒拌鏂囦欢澶逛笅銆傜偣鍑籲ext>>銆 + +![](./image/mtkdl03.png) + +濉笂鎴戜滑鐨勪俊鎭悗锛岀户缁璶ext>>銆 + +![](./image/mtkdl04.png) + +鐒跺悗绛夊緟瀹夎瀹屾垚鍚庣偣鍑籉inish,鎺ョ潃浼氳烦鍑哄櫒浠舵敮鎸佸寘瀹夎鐣岄潰锛岀偣OK鍐嶆妸寮规閮藉弶鎺夛紝鍚庣画鍐嶄粙缁嶃傛渶鍚庤婵娲籑DK锛屽鍏icense,婵娲籑DK鍚庡氨鍙互浣跨敤浜嗐 + +![](./image/mtkdl05.png) + +鐗瑰埆鎻愮ず锛氫竴瀹氳杈撳叆License婵娲籑DK杞欢锛屽缓璁喘涔版鐗圠icense銆 + +### 4.2 瀹夎鍣ㄤ欢鏀寔鍖 +MDK V4鐗堟湰瀹夎鍖呴噷闆嗘垚浜嗗櫒浠剁殑鏀寔鍖咃紝鑰孧DK V5鐗堟湰鏄嫭绔嬪嚭鏉ョ殑锛屽彲浠ヨ嚜宸变笅杞藉畨瑁呫傚畨瑁呭畬寮鍙戝伐鍏稭DK V5鍚庯紝鎴戜滑闇瑕佸畨瑁呭紑鍙戞澘涓昏姱鐗囧瀷鍙峰搴旂殑鑺墖鍣ㄤ欢鏀寔鍖呫 +#### 4.2.1 瀹夎鏂瑰紡涓 +鐧诲綍瀹樼綉锛歔http://www.keil.com/dd2/pack/](http://www.keil.com/dd2/pack/) +涓嬭浇Keil.STM32L4xx_DFP.x.x.x.pack 瀹屾垚鍚庯紝鍙屽嚮鎵撳紑瀹夎銆 +#### 4.2.2 瀹夎鏂瑰紡浜 +MDK杞欢涓婂湪绾垮畨瑁咃紝涓鑸笅杞介熷害浼氭瘮杈冩參锛屾洿鏂版椂闂村緢闀匡紝涓嶆帹鑽愩 +鎵撳紑杞欢锛屽湪瀵艰埅鏍忔墦寮Pack瀹夎鐣岄潰锛屽脊鍑哄寘瀹夎鎻愮ず鐐瑰嚮ok閫夐」銆 +![](./image/mtkins01.png) +杩涘叆鍦ㄧ嚎瀹夎鐣岄潰锛岄夋嫨STM32L4XX Pack,鐐瑰嚮Install杩涜瀹夎銆 +![](./image/mtkins02.png) + +### 4.3 CH340涓插彛椹卞姩瀹夎 +BDW01寮鍙戞澘鏉胯浇USB杞覆鍙h姱鐗囷紝鎵浠ヤ娇鐢║SB绾垮皢寮鍙戞澘杩炴帴鍒扮數鑴戯紝灏卞湪涓插彛璋冭瘯鍔╂墜鏌ョ湅涓插彛杈撳嚭鐨凩OG淇℃伅銆備娇鐢ㄤ覆鍙h皟璇曞姪鎵嬩箣鍓嶉渶瑕佷笅杞藉畨瑁匔H340杞覆鍙h姱鐗囩殑椹卞姩銆傜洿鎺ュ湪缃戜笂鎼滅储涓嬭浇CH340杞覆鍙h姱鐗囩殑椹卞姩锛屼笅杞藉畬鎴愬悗鎵撳紑椹卞姩瀹夎绋嬪簭鐐瑰嚮瀹夎鍗冲彲銆 +![](./image/ch340ins01.png) + +### 4.4 涓插彛璋冭瘯鍔╂墜鐨勫畨瑁呬笌浣跨敤 +宸ュ叿涓嬭浇缃戝潃锛歔http://www.daxia.com/download/sscom.rar](http://www.daxia.com/download/sscom.rar) +涓嬭浇瀹屾垚鍚庯紝瑙e帇锛屽弻鍑绘墦寮涓插彛璋冭瘯鍔╂墜鎵ц绋嬪簭锛岀洿鎺ヤ娇鐢ㄣ +![](./image/ch340ins02.png) +浣跨敤USB绾夸竴绔帴寮鍙戞澘LOG USB涓插彛锛屽彟涓绔繛鎺ュ埌鐢佃剳锛屽墠闈㈠畨瑁呭畬CH340杞覆鍙h姱鐗囩殑椹卞姩锛屾墦寮鐢佃剳鐨勮澶囩鐞嗗櫒锛屽氨鍙互鍦ㄧ鍙e垪琛ㄦ煡鐪婸C涓庡紑鍙戞澘涔嬮棿杩炴帴绔彛鍙凤紝鐒跺悗鍦ㄤ覆鍙h皟璇曞姪鎵-绔彛鍙峰锛岄夋嫨PC鍜屽紑鍙戞澘涔嬮棿鐨勮繛鎺ョ鍙(鎴戣繖閲屾樉绀虹殑鏄疌OM15锛屾墍浠ヨ鍦ㄤ覆鍙h皟璇曞姪鎵嬩腑閫夋嫨COM15)銆 +![](./image/ch340ins03.png) +鍐嶆牴鎹紑鍙戞澘涓插彛娉㈢壒鐜囪缃覆鍙h皟璇曞姪鎵-娉㈢壒鐜囷紝寮鍙戞澘绋嬪簭娉㈢壒鐜囪缃负115200锛屾墍浠ュ湪涓插彛璋冭瘯鍔╂墜涓夋嫨115200娉㈢壒鐜囥傛渶鍚庢墦寮涓插彛灏卞彲浠ヤ娇鐢ㄤ簡銆 + +### 4.5 ST-Link椹卞姩鐨勪笅杞戒笌瀹夎 +鍓嶉潰2.2浠嬬粛杩囧紑鍙戞澘涓嶴T-Link鐑у綍鍣ㄧ殑鎺ョ嚎鏂瑰紡锛屽湪浣跨敤鐑у綍鍣ㄥ皢绋嬪簭鐑у綍鍒板紑鍙戞澘涔嬪墠锛岄渶瑕佸畨瑁呯儳褰曞櫒鐨勯┍鍔ㄣ +鍦⊿T瀹樼綉涓嬭浇ST-Link椹卞姩STSW-LINK009锛屼笅杞界綉鍧锛 +[https://www.st.com/content/st_com/zh/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-utilities/stsw-link009.html](https://www.st.com/content/st_com/zh/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-utilities/stsw-link009.html) + +鍐嶆牴鎹數鑴戠郴缁熷畨瑁呴┍鍔紝32浣嶇數鑴戠郴缁熷畨瑁卍pinst_x86.exe锛64浣嶇數鑴戠郴缁熷畨瑁卍pinst_amd64.exe 銆偮 +![](./image/st-link-dl01.png) + +杩愯瀵瑰簲鐨勯┍鍔ㄦ墽琛岀▼搴忥紝寮濮嬪畨瑁匰T-Link V2椹卞姩锛屾渶鍚庣偣鍑诲畬鎴愩 +![](./image/st-link-dl02.png) + +瀹夎瀹屾垚鍚, 灏嗗紑鍙戞澘鐢垫簮鎵撳紑锛屽皢杩炵潃寮鍙戞澘鐨勭儳褰曞櫒閫氳繃USB鎺ュ彛杩炶嚦鐢佃剳銆 + +鎵撳紑鐢佃剳涓婄殑璁惧绠$悊鍣ㄣ傝嫢鍙互鐪嬪埌閫氱敤涓茶鎬荤嚎璁惧-STM32 STLink,琛ㄧず椹卞姩瀹夎鎴愬姛,濡備笅鍥炬墍绀恒 +![](./image/st-link-dl03.png) + +## 5. 浠g爜涓嬭浇 +[https://github.com/Tencent/TencentOS-tiny](https://github.com/Tencent/TencentOS-tiny "https://github.com/Tencent/TencentOS-tiny") + +# 涓夈佹搷浣滄楠 +## 1.浜戠鎿嶄綔姝ラ +鐧诲綍[鑵捐浜戠墿鑱旂綉寮鍙戝钩鍙帮紙IoT Explorer锛塢(https://cloud.tencent.com/product/iotexplorer "鑵捐浜戠墿鑱旂綉寮鍙戝钩鍙帮紙IoT Explorer锛")锛岀偣鍑烩滅珛鍗充娇鐢ㄢ濊繘鍏ユ帶鍒跺彴锛屼釜浜哄紑鍙戝彲浠ヤ娇鐢ㄥ井淇¤繘琛岀櫥褰曘 +### 1.1 鏂板缓椤圭洰 +椤圭洰鏄负浜嗙敤鎴烽潰瀵逛笉鍚岀殑浜у搧杩唬鎴栦笉鍚岀殑椤圭洰瑙掕壊鑰岃璁$殑涓绉嶉殧绂绘満鍒讹紝渚夸簬鐢ㄦ埛娓呮櫚绠$悊鐗╄仈缃戦」鐩紝骞惰兘鐏垫椿鍦伴厤缃」鐩潈闄愩 + +1. 椤圭洰涓嬪彲浠ュ缓绔嬪涓骇鍝佷笌搴旂敤锛屽簲鐢ㄩ粯璁ゆ湁鏉冮檺璁块棶璇ラ」鐩笅鐨勬墍鏈変骇鍝侊紱 +2. 姣忎釜椤圭洰浼氭湁鑷繁鐨勫敮涓 ID锛屾暟鎹細鏍规嵁椤圭洰杩涜闅旂锛屼互纭繚鏁版嵁瀹夊叏锛 +3. 椤圭洰鍒犻櫎鍚庯紝璇ラ」鐩墍灞炰骇鍝佺瓑鏁版嵁閮藉皢琚垹闄や笖涓嶈兘鎭㈠锛 +4. 寮鍙戝钩鍙版彁渚涜祫婧愮骇鐨勬潈闄愭帶鍒讹紝鍙负涓嶅悓鐨勫瓙鐢ㄦ埛鍒嗛厤椤圭洰绾с佷骇鍝佺骇鐨勬潈闄愭帶鍒讹紱 + +鐐瑰嚮鏂板缓椤圭洰锛屽~鍐欓」鐩悕绉板拰绠浠嬶細 +![](./image/iot01.png) + +### 1.2. 浜у搧寮鍙 +#### 1.2.1 鏂板缓浜у搧 +鐐瑰嚮椤圭洰鍚嶇О杩涘叆鍒拌椤圭洰涓紝鐐瑰嚮鏂板缓浜у搧锛 +![](./image/iot02.png) +濉啓浜у搧鐨勪竴浜涗俊鎭細 +1. 浜у搧鍚嶇О锛氬悕绉颁负涓枃銆佸瓧姣嶃佹暟瀛椼佷笅鍒掔嚎鐨勭粍鍚堬紝1 - 20浣嶄笖涓嶈兘涓虹┖銆 +2. 浜у搧鍝佺被锛氶夋嫨鎮ㄦ墍鍒涘缓浜у搧鐨勬墍灞炲搧绫伙紝涓嶅悓绫诲瀷浜у搧鐨勫睘鎬с佷簨浠剁瓑鏁版嵁妯℃澘浼氭湁鎵涓嶅悓銆傝鎯呰鍙傝 鏁版嵁妯℃澘銆 +3. 璁惧绫诲瀷锛氳澶囦娇鐢2G/3G/4G/Wi-Fi鏃犵嚎閫氫俊鎴栨湁绾块氫俊鏂瑰紡锛岀綉鍏冲彲鎻愪緵浜戠閫氫俊鑳藉姏锛屽府鍔╄澶囦笌骞冲彴閫氫俊銆 +4. 璁よ瘉鏂瑰紡锛氱墿鑱旂綉寮鍙戝钩鍙版彁渚涗袱绉嶈璇佹柟寮忕敤浜庤澶囦笌骞冲彴涔嬮棿閴存潈璁よ瘉銆 + 璇佷功璁よ瘉锛氬湪鍒涘缓璁惧鏃讹紝骞冲彴灏嗕负璁惧鐢熸垚涓涓瘉涔︽枃浠跺拰涓涓閽ユ枃浠讹紝瀹炵幇璁惧涓庝簯涔嬮棿鐨勫弻鍚戣璇併 + 瀵嗛挜璁よ瘉锛氬湪鍒涘缓璁惧鏃讹紝浣跨敤骞冲彴涓鸿澶囬殢鏈虹敓鎴愮殑 PSK銆 +5. 閫氫俊鏂瑰紡锛氭偍鍙互閫夋嫨 Wi-Fi銆佺Щ鍔ㄨ渹绐濓紙2G/3G/4G锛夊拰鍏朵粬閫氫俊鏂瑰紡銆 +6. 鏁版嵁鍗忚锛氶粯璁ら噰鐢ㄦ暟鎹ā鏉跨殑鏁版嵁鍗忚锛屾偍涔熷彲浠ヨ嚜瀹氫箟鍗忚杩涜閫忎紶銆 +7. 鎻忚堪锛氬瓧鏁颁笉鑳借秴杩80涓紝鎮ㄥ彲浠ユ牴鎹渶瑕侀夊~銆 +![](./image/locator01.png) +浜у搧鏂板缓鎴愬姛鍚庯紝鍙湪浜у搧鍒楄〃椤垫煡鐪嬪埌鈥滃畾浣嶈拷韪濄 +![](./image/locator02.png) +#### 1.2.2 鏂板缓鍔熻兘 + +鐐瑰嚮鈥滃畾浣嶈拷韪濊繘鍏ャ + +绯荤粺浼氳嚜鍔ㄧ敓鎴愭爣鍑嗗姛鑳斤紝鍙傜収涓嬪浘灏嗗叾浠栦笉蹇呴』鐨勫垹闄 +![](./image/locator03.png) +##### 1.2.2.1 + +娣诲姞鍔熻兘锛屽鍔燝PS瀹氫綅 + +鍦ㄥ悗闈㈣吘璁繛杩為噷涔熼渶瑕佽繖涓 +![](./image/locator04.png) +##### 1.2.2.2 + +json鏍煎紡涓猴細 +![](./image/locator05.png) +```c +{ + "version": "1.0", + "profile": { + "ProductId": "CUH3P1QBJD", + "CategoryId": "550" + }, + "properties": [ + { + "id": "lac", + "name": "鍦板尯鍖哄煙鐮", + "desc": "鍦板尯鍖哄煙鐮", + "required": true, + "mode": "r", + "define": { + "type": "int", + "unit": "", + "step": "1", + "min": "0", + "max": "32", + "start": "0" + } + }, + { + "id": "cid", + "name": "鍩虹珯鐮", + "desc": "鍩虹珯鐮", + "required": true, + "mode": "r", + "define": { + "type": "int", + "unit": "", + "step": "1", + "min": "0", + "max": "32", + "start": "0" + } + }, + { + "id": "GPS_Info", + "name": "GPS瀹氫綅", + "desc": "", + "mode": "rw", + "define": { + "type": "struct", + "specs": [ + { + "id": "longtitude", + "name": "GPS缁忓害", + "dataType": { + "type": "float", + "min": "-180", + "max": "180", + "start": "0", + "step": "0.001", + "unit": "搴" + } + }, + { + "id": "latitude", + "name": "GPS绾害", + "dataType": { + "type": "float", + "min": "-90", + "max": "90", + "start": "0", + "step": "0.001", + "unit": "搴" + } + } + ] + }, + "required": false + } + ], + "events": [], + "actions": [] +} +``` +### 1.3 鍒涘缓娴嬭瘯璁惧 +鍦ㄣ愯澶囪皟璇曘戦〉闈腑锛屽崟鍑汇愭柊寤鸿澶囥戯紝璁惧鍚嶄负 bd_location锛 +![](./image/locator06.png) +## 2. 璁惧渚ф搷浣 +浣跨敤 Keil-MDK 鎵撳紑 mqttclientiotexplorerlocation 宸ョ▼锛 +TencentOS-tiny\board\BDW01-STM32L496VG\KEIL\mqttclient_iot_explorer_locator_ll +![](./image/locator07.png) +### 2.1 閰嶇疆浣跨敤鐨勭綉缁滆澶 +鎵撳紑mqttclient_iot_explorer_locator_ll.c + +鎵撳紑M5313瀹忓畾涔 +![](./image/locator08.png) +#### 2.1.1 淇敼MQTT瀵规帴鍙傛暟 + +鍦ㄨ吘璁簯鐗╄仈缃戝紑鍙戝钩鍙板彲浠ョ湅鍒颁竴浜涗骇鍝両D銆佽澶嘔D銆佽澶囩閽ヤ笁涓弬鏁帮紝濡傚浘锛 +![](./image/locator09.png) +鎺ヤ笅鏉ヨ繘鍏encentOS-tiny浠撳簱涓殑tools鐩綍锛屼娇鐢╬ython杩愯鑴氭湰mqttconfiggen.py锛屾寜鐓ф彁绀鸿緭鍑哄垰鍒氬湪骞冲彴鏌ヨ鍒扮殑涓変釜鍙傛暟锛岃剼鏈細鑷姩鐢熸垚mqtt閰嶇疆鍙傛暟锛 +![](./image/locator10.png) +鈶 杈撳叆浜у搧ID锛 +鈶 杈撳叆璁惧鍚嶇О +鈶 杈撳叆璁惧绉橀挜锛 +鈶 鈶 淇濇寔榛樿锛岀洿鎺ュ洖杞︼紱 +鈶 闇瑕佺殑鐢熸垚淇℃伅銆 +鎺ヤ笅鏉ュ湪浠g爜涓慨鏀归厤缃俊鎭細 +![](./image/locator11.png) +#### 2.1.2 淇敼mqtt瀵规帴topic + +璁惧鍚戜簯绔笂鎶ユ暟鎹殑topic濡備笅锛 + +涓婅璇锋眰 Topic锛 $thing/up/property/{ProductID}/{DeviceName} + +涓婅鍝嶅簲 Topic锛 $thing/down/property/{ProductID}/{DeviceName} + +淇敼浠g爜锛岄鍏堟牴鎹嚜宸辩殑浜у搧ID鍜岃澶嘔D淇敼涓婃姤topic锛 +![](./image/locator12.png) + +![](./image/locator13.png) +鐒跺悗淇敼璁㈤槄topic锛 +![](./image/locator14.png) +鎵撳紑2g妯″潡M5313鍜孏PS鐨勪覆鍙f帴鏀讹細 +![](./image/locator15.png) +#### 2.1.3 缂栬瘧涓嬭浇 + +淇敼瀹屾垚涔嬪悗缂栬瘧宸ョ▼锛屼笅杞藉埌寮鍙戞澘涓紝閲嶆柊涓婄數寮濮嬭繍琛岋紝鍦ㄤ覆鍙e姪鎵嬩腑鏌ョ湅鎵撳嵃鏃ュ織锛 +![](./image/locator16.png) +#### 2.1.4 涓婃姤瀹氫綅 +GPS鑾峰彇鍒板畾浣嶆椂锛屼覆鍙d細鎵撳嵃GPS瀹氫綅淇℃伅锛 +![](./image/locator17.png) +鍚屾椂灏嗗畾浣嶄笂浼犲埌浜戠锛 鍦ㄤ簯绔煡鐪嬩笂鎶ユ棩蹇楋細 +![](./image/locator18.png) +## 3. 鑵捐杩炶繛灏忕▼搴忔搷浣滄楠 +### 3.1 鍦ㄥ钩鍙版祴娣诲姞闈㈡澘 +![](./image/locator19.png) +閫夋嫨鍏嶅紑鍙戦潰鏉 +![](./image/locator20.png) +### 3.2 娣诲姞瀹跺涵 +鎵嬫満绔湪銆愬井淇°戞悳绱€愯吘璁繛杩炪戝皬绋嬪簭锛岄娆′娇鐢ㄩ渶瑕佽繘鍏ュ悗鐐瑰嚮銆愭垜鐨勩->銆愬搴鐞嗐戯紝娣诲姞涓涓綘鍠滄鐨勫悕绉板嵆鍙 +### 3.3 娣诲姞璁惧 +杩涘叆鍚庡湪涓笅鏂圭偣鍑+鍙凤紝寮濮嬫壂鎻忎簩缁寸爜 +![](./image/locator21.png) +![](./image/locator22.png) +鍦ㄨ吘璁簯鐗╄仈缃戝紑鍙戝钩鍙拌繘鍏ャ愯澶囪皟璇曘戯紝鐐瑰嚮瀵瑰簲璁惧鍚庣殑銆愪簩缁寸爜銆戯細 +![](./image/locator23.png) +鑵捐杩炶繛鎵弿姝や簩缁寸爜鍗冲彲鎴愬姛娣诲姞璁惧锛屾坊鍔犳垚鍔熶箣鍚庡鍥撅細 +![](./image/locator24.png) +缁欒澶囦笂鐢碉紝绛変竴浼氬彲浠ョ湅鍒拌澶囦笂绾匡紝绛夊緟鎷垮埌瀹氫綅锛岀偣杩涘幓鍙互鐪嬪埌璁惧鐨勪綅缃 +![](./image/locator25.png) + +寮鍙戞澘璐拱閾炬帴鍦板潃浜岀淮鐮侊細 +![](./image/sell.png) \ No newline at end of file diff --git a/board/BDW01-STM32L496VG/doc/image/locator01.png b/board/BDW01-STM32L496VG/doc/image/locator01.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d0fc55e08674ec9b6181b67fcb50a52f69c3eb Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator01.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator02.png b/board/BDW01-STM32L496VG/doc/image/locator02.png new file mode 100644 index 0000000000000000000000000000000000000000..846e6659b24451b32984ebe8d546406809d8dba5 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator02.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator03.png b/board/BDW01-STM32L496VG/doc/image/locator03.png new file mode 100644 index 0000000000000000000000000000000000000000..7bc90523df803981e4c943a151fb89f6e48a37a4 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator03.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator04.png b/board/BDW01-STM32L496VG/doc/image/locator04.png new file mode 100644 index 0000000000000000000000000000000000000000..1d5f92bbba54794e11653d9adcc2e689c5fc7afa Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator04.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator05.png b/board/BDW01-STM32L496VG/doc/image/locator05.png new file mode 100644 index 0000000000000000000000000000000000000000..2d6c0955b4adeaa0d71624ef9da05f0639c9d8bb Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator05.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator06.png b/board/BDW01-STM32L496VG/doc/image/locator06.png new file mode 100644 index 0000000000000000000000000000000000000000..3cccee348089e60aa4d1e4312d2008cb70493d5a Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator06.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator07.png b/board/BDW01-STM32L496VG/doc/image/locator07.png new file mode 100644 index 0000000000000000000000000000000000000000..4f5a805fe5bbcc8c8b417fa5f7bf49b0a4963919 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator07.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator08.png b/board/BDW01-STM32L496VG/doc/image/locator08.png new file mode 100644 index 0000000000000000000000000000000000000000..14021262680e25a17cc884ad758d86d467b07542 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator08.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator09.png b/board/BDW01-STM32L496VG/doc/image/locator09.png new file mode 100644 index 0000000000000000000000000000000000000000..9e0a89c812684fa4a1ed2914c3fc3b7e6fe53f71 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator09.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator10.png b/board/BDW01-STM32L496VG/doc/image/locator10.png new file mode 100644 index 0000000000000000000000000000000000000000..5aeb1f17035c02002670bc5e2358738122bfd4c4 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator10.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator11.png b/board/BDW01-STM32L496VG/doc/image/locator11.png new file mode 100644 index 0000000000000000000000000000000000000000..e0d89adf55ed0f4727a189045387eb7bde29085a Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator11.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator12.png b/board/BDW01-STM32L496VG/doc/image/locator12.png new file mode 100644 index 0000000000000000000000000000000000000000..b944ed218ed7f7e602c5ba52cd06e302464ab7f3 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator12.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator13.png b/board/BDW01-STM32L496VG/doc/image/locator13.png new file mode 100644 index 0000000000000000000000000000000000000000..b9481b578c002d202c3b79ef4880bb4051845448 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator13.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator14.png b/board/BDW01-STM32L496VG/doc/image/locator14.png new file mode 100644 index 0000000000000000000000000000000000000000..f5067ebe27e5a5447d1688b2b3e433c197afc117 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator14.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator15.png b/board/BDW01-STM32L496VG/doc/image/locator15.png new file mode 100644 index 0000000000000000000000000000000000000000..964a435aa4ed8a93f49bd343867f5e0f043bc78f Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator15.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator16.png b/board/BDW01-STM32L496VG/doc/image/locator16.png new file mode 100644 index 0000000000000000000000000000000000000000..8ae21c7b5608c12ca7870af4e761def962e41f5c Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator16.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator17.png b/board/BDW01-STM32L496VG/doc/image/locator17.png new file mode 100644 index 0000000000000000000000000000000000000000..6b992ebd5953d9c75dcb91a8e48cdf2f637ed7c1 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator17.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator18.png b/board/BDW01-STM32L496VG/doc/image/locator18.png new file mode 100644 index 0000000000000000000000000000000000000000..7b1ffc574b3252fee93d1d97c24859ccfa114481 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator18.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator19.png b/board/BDW01-STM32L496VG/doc/image/locator19.png new file mode 100644 index 0000000000000000000000000000000000000000..1d1b41010b701126d3c84aa2a61aeabb9182ba5b Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator19.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator20.png b/board/BDW01-STM32L496VG/doc/image/locator20.png new file mode 100644 index 0000000000000000000000000000000000000000..9cedc6492af5549da9b5cb862221fb948fa06aaa Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator20.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator21.png b/board/BDW01-STM32L496VG/doc/image/locator21.png new file mode 100644 index 0000000000000000000000000000000000000000..c433950d8a2ce52cf7b91ea76b6f207c86279f85 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator21.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator22.png b/board/BDW01-STM32L496VG/doc/image/locator22.png new file mode 100644 index 0000000000000000000000000000000000000000..cef20a987c1e763b9a9309ffa076bd473da3e53d Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator22.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator23.png b/board/BDW01-STM32L496VG/doc/image/locator23.png new file mode 100644 index 0000000000000000000000000000000000000000..335de03ca49574b8d4268b43ca7dbe94f8550202 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator23.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator24.png b/board/BDW01-STM32L496VG/doc/image/locator24.png new file mode 100644 index 0000000000000000000000000000000000000000..ef18bfbfaa9dea6db52c7005e61b637525252ce1 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator24.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/locator25.png b/board/BDW01-STM32L496VG/doc/image/locator25.png new file mode 100644 index 0000000000000000000000000000000000000000..94a97a343cdd25bc204653644afecd7c87b87a6d Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/locator25.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/sch01.png b/board/BDW01-STM32L496VG/doc/image/sch01.png new file mode 100644 index 0000000000000000000000000000000000000000..044d8b1ffb4326b64b03b60a0b125a503f47d0e2 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/sch01.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/sch02.png b/board/BDW01-STM32L496VG/doc/image/sch02.png new file mode 100644 index 0000000000000000000000000000000000000000..ad990bb71e6f4b87e0cf1d5a371b1945cf7028a0 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/sch02.png differ diff --git a/board/BDW01-STM32L496VG/doc/image/sell.png b/board/BDW01-STM32L496VG/doc/image/sell.png new file mode 100644 index 0000000000000000000000000000000000000000..b5b381388a9ae394de069be0ccbc3d59c73217c2 Binary files /dev/null and b/board/BDW01-STM32L496VG/doc/image/sell.png differ