From 4c6e9272a45d9935ed40895840c2364f8d10ca4d Mon Sep 17 00:00:00 2001 From: HalfSweet Date: Sat, 7 Sep 2024 12:47:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E4=B8=80=E4=BA=9BWarn?= =?UTF-8?q?ing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- projects/HSLink-Pro/src/DAP_config.h | 32 ---------------------------- 1 file changed, 32 deletions(-) diff --git a/projects/HSLink-Pro/src/DAP_config.h b/projects/HSLink-Pro/src/DAP_config.h index a7509f3..774a533 100644 --- a/projects/HSLink-Pro/src/DAP_config.h +++ b/projects/HSLink-Pro/src/DAP_config.h @@ -169,12 +169,6 @@ static const char TargetBoardName [] = TARGET_BOARD_NAME; \return String length (including terminating NULL character) or 0 (no string). */ __STATIC_INLINE uint8_t DAP_GetVendorString (char *str) { -// static const char * Vendor = "CherryDAP"; -// uint8_t len = strlen(Vendor); -// for(uint32_t i = 0; i < len; i++) { -// str[i] = Vendor[i]; -// } -// return len; (void)str; return (0U); } @@ -184,18 +178,8 @@ __STATIC_INLINE uint8_t DAP_GetVendorString (char *str) { \return String length (including terminating NULL character) or 0 (no string). */ __STATIC_INLINE uint8_t DAP_GetProductString (char *str) { -//#ifdef PRODUCT_STRING -#if 0 - static const char * Product = PRODUCT_STRING; - uint8_t len = strlen(Product); - for(uint32_t i = 0; i < len; i++) { - str[i] = Product[i]; - } - return len; -#else (void)str; return (0U); -#endif } /** Get Serial Number string. @@ -203,12 +187,6 @@ __STATIC_INLINE uint8_t DAP_GetProductString (char *str) { \return String length (including terminating NULL character) or 0 (no string). */ __STATIC_INLINE uint8_t DAP_GetSerNumString (char *str) { -// extern char serial_number[32]; -// uint8_t len = strlen(serial_number); -// for(uint32_t i = 0; i < len; i++) { -// str[i] = serial_number[i]; -// } -// return len; (void)str; return (0U); } @@ -286,16 +264,6 @@ __STATIC_INLINE uint8_t DAP_GetTargetBoardNameString (char *str) { \return String length (including terminating NULL character) or 0 (no string). */ __STATIC_INLINE uint8_t DAP_GetProductFirmwareVersionString (char *str) { -#ifdef CONFIG_BUILD_VERSION - const char * version = CONFIG_BUILD_VERSION; -#else - const char * version = DAP_FW_VER; -#endif -// uint8_t len = strlen(version); -// for(uint32_t i = 0; i < len; i++) { -// str[i] = version[i]; -// } -// return len; (void)str; return (0U); }