Skip to content

Commit

Permalink
Merge pull request #471 from espressif/fix/otg_board_sd_mount_bug
Browse files Browse the repository at this point in the history
fix(esp32_s3_usb_otg): Renamed Kconfig SD mount option.
  • Loading branch information
espzav authored Jan 6, 2025
2 parents 4ce2a5f + 1c1b328 commit a9620d5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bsp/esp32_s3_usb_otg/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ menu "Board Support Package"
help
The SDMMC host will format (FAT) the uSD card if it fails to mount the filesystem.

config BSP_uSD_MOUNT_POINT
config BSP_SD_MOUNT_POINT
string "uSD card mount point"
default "/sdcard"
help
Expand Down
4 changes: 2 additions & 2 deletions bsp/esp32_s3_usb_otg/esp32_s3_usb_otg.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ esp_err_t bsp_sdcard_mount(void)
.flags = 0,
};

return esp_vfs_fat_sdmmc_mount(CONFIG_BSP_uSD_MOUNT_POINT, &host, &slot_config, &mount_config, &bsp_sdcard);
return esp_vfs_fat_sdmmc_mount(BSP_SD_MOUNT_POINT, &host, &slot_config, &mount_config, &bsp_sdcard);
}

esp_err_t bsp_sdcard_unmount(void)
{
return esp_vfs_fat_sdcard_unmount(CONFIG_BSP_uSD_MOUNT_POINT, bsp_sdcard);
return esp_vfs_fat_sdcard_unmount(BSP_SD_MOUNT_POINT, bsp_sdcard);
}

esp_err_t bsp_button_init(void)
Expand Down
2 changes: 1 addition & 1 deletion bsp/esp32_s3_usb_otg/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "1.6.1"
version: "1.6.2"
description: Board Support Package (BSP) for ESP32-S3-USB-OTG
url: https://github.com/espressif/esp-bsp/tree/master/bsp/esp32_s3_usb_otg

Expand Down
2 changes: 1 addition & 1 deletion bsp/esp32_s3_usb_otg/include/bsp/esp32_s3_usb_otg.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ typedef struct {
* fclose(f);
* \endcode
**************************************************************************************************/
#define BSP_MOUNT_POINT CONFIG_BSP_SD_MOUNT_POINT
#define BSP_SD_MOUNT_POINT CONFIG_BSP_SD_MOUNT_POINT
extern sdmmc_card_t *bsp_sdcard;

/**
Expand Down

0 comments on commit a9620d5

Please sign in to comment.