From 3865a9ec37dd7d2991672ed479646755fb2625fc Mon Sep 17 00:00:00 2001
From: liuzhigang <15608060653@163.com>
Date: 星期四, 13 十一月 2025 11:09:49 +0800
Subject: [PATCH] 新增PWM控制,蓝牙功能

---
 STM32H743/APL/app.c |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/STM32H743/APL/app.c b/STM32H743/APL/app.c
index bda2343..f261439 100644
--- a/STM32H743/APL/app.c
+++ b/STM32H743/APL/app.c
@@ -38,6 +38,7 @@
     Internet_Init();
     UDPClient_Init();
     TCPClient_Init();
+	BT_Init();
     while (1)
     {
         //HIDO_UINT32 timeout = HIDO_TimerGetNearestTimeout(1000);
@@ -85,9 +86,7 @@
 {
     MCUFlash_Init();
     parameter_init();
-	printf("demo run!\r\n");
-
-    /* 寮�鏈轰俊鎭緭鍑猴細鐗堟湰鍙枫�佽澶嘔D銆両P銆佺鍙o紙UDP/TCP锛� */
+     
     {
         uint16_t dev_id = g_com_map[DEV_ID];
         uint16_t udp_port = g_com_map[UDP_PORT];
@@ -101,13 +100,13 @@
         uint16_t tip2 = g_com_map[TCP_IP_2];
         uint16_t tip3 = g_com_map[TCP_IP_3];
 
-        /* VERSION 绱㈠紩鍦� global_param.h 涓负 0x1锛屽鏋滈渶瑕佹墦鍗扮増鏈彿瀛楃涓诧紝鍙槧灏勫埌鍏跺畠瀛樺偍锛涚洰鍓嶄粎鎵撳嵃鏁存暟 */
+			
         uint16_t version = g_com_map[VERSION];
 
-        printf("[BOOT] Version: %u\r\n", version);
-        printf("[BOOT] DeviceID: %u\r\n", dev_id);
-        printf("[BOOT] UDP Server: %u.%u.%u.%u:%u\r\n", ip0, ip1, ip2, ip3, udp_port);
-        printf("[BOOT] TCP Server: %u.%u.%u.%u:%u\r\n", tip0, tip1, tip2, tip3, tcp_port);
+      //  printf("[BOOT] Version: %u\r\n", version);
+      //  printf("[BOOT] DeviceID: %u\r\n", dev_id);
+     //   printf("[BOOT] UDP Server: %u.%u.%u.%u:%u\r\n", ip0, ip1, ip2, ip3, udp_port);
+      //  printf("[BOOT] TCP Server: %u.%u.%u.%u:%u\r\n", tip0, tip1, tip2, tip3, tcp_port);
     }
     TaskHandle_t xTaskHandle = NULL;
 
@@ -117,7 +116,7 @@
         .cb_mem = NULL,
         .cb_size = 0};
 
-    // 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟脚猴拷锟斤拷锟斤拷锟斤拷始锟斤拷锟斤拷为0锟斤拷锟斤拷锟斤拷锟斤拷为1锟斤拷
+    //
     g_semaphoreHandle = osSemaphoreNew(1, 0, &semaphore_attr);
 
     xTaskCreate(

--
Gitblit v1.9.3