From c4b6e487f09c7db24ae801360255a5116f4a63f3 Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Wed, 20 Nov 2024 16:54:06 +0800 Subject: [PATCH] =?utf8?q?=E6=89=80=E6=9C=89messageQueue=20ID=E9=83=BD?= =?utf8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=EF=BC=8C=E9=98=B2=E6=AD=A2=E5=87=BA?= =?utf8?q?=E7=8E=B0=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/application/battery/service/battery_service.cpp | 2 +- .../wearable/service/ble_service/bleservice/bleService.c | 2 +- code/sdk/drivers/peripheral/a5133/service/a5133_service.cpp | 2 +- code/sdk/drivers/peripheral/acc/service/acc_service.c | 2 +- code/sdk/drivers/peripheral/mag/service/mag_service.c | 2 +- code/sdk/drivers/peripheral/ppg/service/ppg_service.cpp | 2 +- code/sdk/drivers/peripheral/slip/uart_slip.c | 2 +- code/sdk/drivers/peripheral/utils/custom_cmd_service.c | 2 +- .../drivers/peripheral/utils/custom_fileoperate_service.c | 2 +- .../peripheral/vibrator/service/vibrator_service.cpp | 6 +++--- code/sdk/test/common/testsuite/src/test_suite_task.c | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/code/sdk/application/battery/service/battery_service.cpp b/code/sdk/application/battery/service/battery_service.cpp index 22c77742d..04a900ab2 100644 --- a/code/sdk/application/battery/service/battery_service.cpp +++ b/code/sdk/application/battery/service/battery_service.cpp @@ -78,7 +78,7 @@ osTimerId_t g_battery_timer = NULL; #define DISABLE_CHARGE_CHECK_MS 1000 #define ENABLE_CHARGE_TIMEOUT_MS 10000 * 4 bool last_battery_charge_enable_status=true; // true上次刚设置在充电状态,false 上次设置不在充电状态。注意这个是充电IC的充电开关设置,并非真正处于充电状态的标识。 -static unsigned long g_app_queue; +static unsigned long g_app_queue = 0xFFFFFFFF; #define BATTERY_CMD_CHECK_VOLTAGE 0x11 #define BATTERY_CMD_CHARGE_PLUG 0x13 #define BATTERY_CMD_CHARGE_UNPLUG 0x14 diff --git a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c index ffb8fbd40..bfb3f2c4d 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c @@ -1858,7 +1858,7 @@ typedef struct } blesrv_custom_cmd_t; #define MAX_BUF_LEN sizeof(blesrv_custom_cmd_t) //sizeof(blesrv_custom_cmd_t) /*MTU max 514 , sizeof(blesrv_custom_cmd_t)*/ -static unsigned long g_blesrv_queue; +static unsigned long g_blesrv_queue = 0xFFFFFFFF; static uint8_t g_blesrv_queue_created = 0; void blesrv_service_recv_msg_handler(uint16_t srv_handle, uint8_t * msg_data, uint32_t msg_len) diff --git a/code/sdk/drivers/peripheral/a5133/service/a5133_service.cpp b/code/sdk/drivers/peripheral/a5133/service/a5133_service.cpp index 414022ecc..99e5cb147 100644 --- a/code/sdk/drivers/peripheral/a5133/service/a5133_service.cpp +++ b/code/sdk/drivers/peripheral/a5133/service/a5133_service.cpp @@ -55,7 +55,7 @@ static bool g_a5133_service_initialled = false; #define A5133_SERVICE_MSG_COUNT 16 #define A5133_SERVICE_TASK_SIZE 0x1000 -static unsigned long g_app_queue; +static unsigned long g_app_queue= 0xFFFFFFFF; static bool a5133_service_running_stat = false; static bool a5133_sensor_exist = false; diff --git a/code/sdk/drivers/peripheral/acc/service/acc_service.c b/code/sdk/drivers/peripheral/acc/service/acc_service.c index 25a5d214b..bb693fe1d 100644 --- a/code/sdk/drivers/peripheral/acc/service/acc_service.c +++ b/code/sdk/drivers/peripheral/acc/service/acc_service.c @@ -45,7 +45,7 @@ osTimerId_t g_acc_service_timer = NULL; static bool g_bat_timer_is_running = false; #define ACC_CHECK_MS 100 -static unsigned long g_app_queue; +static unsigned long g_app_queue= 0xFFFFFFFF; static bool acc_service_running_stat = false; static void acc_service_check_timer_callback(void* data); diff --git a/code/sdk/drivers/peripheral/mag/service/mag_service.c b/code/sdk/drivers/peripheral/mag/service/mag_service.c index e542d3bf8..bab12f639 100644 --- a/code/sdk/drivers/peripheral/mag/service/mag_service.c +++ b/code/sdk/drivers/peripheral/mag/service/mag_service.c @@ -83,7 +83,7 @@ static bool g_mag_sensor_exist = false; static bool g_bat_timer_is_running = false; #define MAG_CHECK_MS 40 -static unsigned long g_app_queue; +static unsigned long g_app_queue= 0xFFFFFFFF; static bool mag_service_running_stat = false; static void mag_service_check_timer_callback(void* data); diff --git a/code/sdk/drivers/peripheral/ppg/service/ppg_service.cpp b/code/sdk/drivers/peripheral/ppg/service/ppg_service.cpp index e32fdca60..934be6382 100644 --- a/code/sdk/drivers/peripheral/ppg/service/ppg_service.cpp +++ b/code/sdk/drivers/peripheral/ppg/service/ppg_service.cpp @@ -63,7 +63,7 @@ uint8_t light_databuf[64] = {0}; #define PPG_SERVICE_TASK_PRIO 5 #define MAG_CHECK_MS 20 -static unsigned long g_app_queue; +static unsigned long g_app_queue= 0xFFFFFFFF; static bool ppg_service_running_stat = false; static bool ppg_sensor_exist = false; diff --git a/code/sdk/drivers/peripheral/slip/uart_slip.c b/code/sdk/drivers/peripheral/slip/uart_slip.c index 6b38077ae..803ae8d7c 100644 --- a/code/sdk/drivers/peripheral/slip/uart_slip.c +++ b/code/sdk/drivers/peripheral/slip/uart_slip.c @@ -36,7 +36,7 @@ struct netif sl_netif; #define UART_SLIP_CMD_MSG_READ_DATA 0x01 #define UART_SLIP_CMD_MSG_FLUSH_DATA 0x02 -static unsigned long g_slip_cmd_queue; +static unsigned long g_slip_cmd_queue= 0xFFFFFFFF; #define MAX_BUFFER_SIZE (128) typedef struct { uint8_t cmd; diff --git a/code/sdk/drivers/peripheral/utils/custom_cmd_service.c b/code/sdk/drivers/peripheral/utils/custom_cmd_service.c index cb7691c61..21cf3672f 100644 --- a/code/sdk/drivers/peripheral/utils/custom_cmd_service.c +++ b/code/sdk/drivers/peripheral/utils/custom_cmd_service.c @@ -55,7 +55,7 @@ typedef struct */ static bool g_bat_timer_is_running = false; -static unsigned long g_custom_cmd_queue; +static unsigned long g_custom_cmd_queue= 0xFFFFFFFF; static bool g_custom_cmd_queue_created = 0; static bool custom_cmd_service_running_stat = false; diff --git a/code/sdk/drivers/peripheral/utils/custom_fileoperate_service.c b/code/sdk/drivers/peripheral/utils/custom_fileoperate_service.c index 8b50c542a..f7e755625 100644 --- a/code/sdk/drivers/peripheral/utils/custom_fileoperate_service.c +++ b/code/sdk/drivers/peripheral/utils/custom_fileoperate_service.c @@ -63,7 +63,7 @@ typedef struct */ static bool g_bat_timer_is_running = false; -static unsigned long g_custom_fileoperate_queue; +static unsigned long g_custom_fileoperate_queue= 0xFFFFFFFF; static bool g_custom_fileoperate_queue_created = 0; static bool custom_fileoperate_service_running_stat = false; diff --git a/code/sdk/drivers/peripheral/vibrator/service/vibrator_service.cpp b/code/sdk/drivers/peripheral/vibrator/service/vibrator_service.cpp index e6865fd62..85e911ce1 100644 --- a/code/sdk/drivers/peripheral/vibrator/service/vibrator_service.cpp +++ b/code/sdk/drivers/peripheral/vibrator/service/vibrator_service.cpp @@ -1,8 +1,8 @@ /* * @Author: penglei 1624952103@qq.com * @Date: 2024-08-08 16:33:23 - * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-11-13 16:51:45 + * @LastEditors: SnickerSun snickersun@163.com + * @LastEditTime: 2024-11-20 16:45:27 * @FilePath: /FD230/code/sdk/drivers/peripheral/vibrator/service/vibrator_service.cpp * @Description: * @@ -135,7 +135,7 @@ void ui_api_vibrate_once_with_judgement_func(void) #define MAG_CHECK_MS 20 -static unsigned long g_app_queue; +static unsigned long g_app_queue= 0xFFFFFFFF; static bool vibrator_service_running_stat = false; diff --git a/code/sdk/test/common/testsuite/src/test_suite_task.c b/code/sdk/test/common/testsuite/src/test_suite_task.c index 275e5e9ec..5952da140 100755 --- a/code/sdk/test/common/testsuite/src/test_suite_task.c +++ b/code/sdk/test/common/testsuite/src/test_suite_task.c @@ -24,7 +24,7 @@ #define CONFIG_TEST_SUITE_COMMAND_BUFFER_SIZE 300 osal_task *g_test_suite_task_id = NULL; -unsigned long g_test_suite_msgqueue_id; +unsigned long g_test_suite_msgqueue_id= 0xFFFFFFFF; static char g_test_suite_command_buffer_array[CONFIG_TEST_SUITE_COMMAND_BUFFER_SIZE + 1]; static bool g_exit_test_suite_task = false; -- 2.17.1