Skip to content

Commit

Permalink
fix: 解决一些Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
HalfSweet committed Sep 7, 2024
1 parent 8bd5555 commit 4c6e927
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions projects/HSLink-Pro/src/DAP_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -184,31 +178,15 @@ __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.
\param str Pointer to buffer to store the string (max 60 characters).
\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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 4c6e927

Please sign in to comment.