Skip to content

Commit

Permalink
chore: rename SD_CardInfo to BSP_SD_CardInfo
Browse files Browse the repository at this point in the history
to avoid change in FatFs. SD_CardInfo kept for
backward compatibility.

Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Sep 29, 2023
1 parent 56505ea commit 6d29d7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Sd2Card.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class Sd2Card {
uint8_t type(void) const;

private:
SD_CardInfo _SdCardInfo;
BSP_SD_CardInfo _SdCardInfo;

};
#endif // sd2Card_h
5 changes: 3 additions & 2 deletions src/bsp_sd.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ Please update the core or install previous library version."

/*SD Card information structure */

#define SD_CardInfo HAL_SD_CardInfoTypeDef

#define BSP_SD_CardInfo HAL_SD_CardInfoTypeDef
/* For backward compatibility */
#define SD_CardInfo BSP_SD_CardInfo
/*SD status structure definition */
#define MSD_OK ((uint8_t)0x00)
#define MSD_ERROR ((uint8_t)0x01)
Expand Down

0 comments on commit 6d29d7b

Please sign in to comment.