Skip to content

Commit d265d18

Browse files
pennamfacchinm
authored andcommitted
Giga: WHD: add function to mount wlan firmware fs from WiFi library
1 parent 6ab6450 commit d265d18

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_GIGA/COMPONENT_WHD/port/wiced_filesystem.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ wiced_result_t wiced_filesystem_init(void)
157157
}
158158
}
159159

160+
wiced_result_t wiced_filesystem_mount_default(void)
161+
{
162+
return wiced_filesystem_mount(mbr_bd, 0, &resource_fs_handle, WIFI_DEFAULT_MOUNT_NAME);
163+
}
164+
160165
wiced_result_t wiced_filesystem_mount(BlockDevice *device, wiced_filesystem_handle_type_t fs_type, wiced_filesystem_t *fs_handle_out, const char *mounted_name)
161166
{
162167
wifi_fs = new FATFileSystem(mounted_name);

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_GIGA/COMPONENT_WHD/port/wiced_filesystem.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ typedef int wiced_filesystem_handle_type_t;
8181
*/
8282
wiced_result_t wiced_filesystem_init(void);
8383

84+
/**
85+
* Mount the physical device using default parameters
86+
*
87+
* This assumes that the device is ready to read/write immediately.
88+
*
89+
* @return WICED_SUCCESS on success
90+
*/
91+
wiced_result_t wiced_filesystem_mount_default(void);
92+
8493
/**
8594
* Open a file for reading or writing
8695
*

0 commit comments

Comments
 (0)