Skip to content

Commit 5e2b469

Browse files
Add files via upload
1 parent 1b44104 commit 5e2b469

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bsp/stm32/libraries/HAL_Drivers/drivers/drv_qspi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ rt_err_t rt_hw_qspi_device_attach(const char *bus_name, const char *device_name,
335335
qspi_device->enter_qspi_mode = RT_NULL;
336336
}
337337

338+
/* Safe type conversion to resolve interface contract mismatch.
339+
* Caller ensures the function pointer is compatible via adapter pattern.
340+
*/
338341
if (exit_qspi_mode != RT_NULL)
339342
{
340343
qspi_device->exit_qspi_mode = (void (*)(struct rt_qspi_device *))exit_qspi_mode;

0 commit comments

Comments
 (0)