Skip to content

Commit 216b2e4

Browse files
committed
NVision: add WHD patch
1 parent c53aded commit 216b2e4

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
From 35749b8feaa2b81799ffd8f04ad1f05d04538d3e Mon Sep 17 00:00:00 2001
2+
From: pennam <m.pennasilico@arduino.cc>
3+
Date: Mon, 14 Nov 2022 15:47:50 +0100
4+
Subject: [PATCH 183/185] NiclaVision: WHD: add function to mount wlan firmware
5+
fs from WiFi library
6+
7+
---
8+
.../COMPONENT_WHD/port/wiced_filesystem.cpp | 5 +++++
9+
.../COMPONENT_WHD/port/wiced_filesystem.h | 9 +++++++++
10+
2 files changed, 14 insertions(+)
11+
12+
diff --git a/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_NICLA_VISION/COMPONENT_WHD/port/wiced_filesystem.cpp b/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_NICLA_VISION/COMPONENT_WHD/port/wiced_filesystem.cpp
13+
index d66225ffd0..fe5a78a98f 100644
14+
--- a/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_NICLA_VISION/COMPONENT_WHD/port/wiced_filesystem.cpp
15+
+++ b/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_NICLA_VISION/COMPONENT_WHD/port/wiced_filesystem.cpp
16+
@@ -170,6 +170,11 @@ wiced_result_t wiced_filesystem_mount(BlockDevice *device, wiced_filesystem_hand
17+
return WICED_ERROR;
18+
}
19+
20+
+wiced_result_t wiced_filesystem_mount_default(void)
21+
+{
22+
+ return wiced_filesystem_mount(mbr_bd, 0, &resource_fs_handle, WIFI_DEFAULT_MOUNT_NAME);
23+
+}
24+
+
25+
wiced_result_t wiced_filesystem_file_open(wiced_filesystem_t *fs_handle, wiced_file_t *file_handle_out, const char *filename, wiced_filesystem_open_mode_t mode)
26+
{
27+
/* This is called by mbed test system */
28+
diff --git a/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_NICLA_VISION/COMPONENT_WHD/port/wiced_filesystem.h b/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_NICLA_VISION/COMPONENT_WHD/port/wiced_filesystem.h
29+
index a65aa3c148..77d49d1820 100644
30+
--- a/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_NICLA_VISION/COMPONENT_WHD/port/wiced_filesystem.h
31+
+++ b/targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_NICLA_VISION/COMPONENT_WHD/port/wiced_filesystem.h
32+
@@ -81,6 +81,15 @@ typedef int wiced_filesystem_handle_type_t;
33+
*/
34+
wiced_result_t wiced_filesystem_init(void);
35+
36+
+/**
37+
+ * Mount the physical device using default parameters
38+
+ *
39+
+ * This assumes that the device is ready to read/write immediately.
40+
+ *
41+
+ * @return WICED_SUCCESS on success
42+
+ */
43+
+wiced_result_t wiced_filesystem_mount_default(void);
44+
+
45+
/**
46+
* Open a file for reading or writing
47+
*
48+
--
49+
2.38.1
50+

0 commit comments

Comments
 (0)