Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bsp/stm32/libraries/HAL_Drivers/drivers/drv_qspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ rt_err_t rt_hw_qspi_device_attach(const char *bus_name, const char *device_name,
goto __exit;
}

rt_memset(qspi_device, 0, sizeof(struct rt_qspi_device));

/* Safe type conversion to resolve interface contract mismatch.
* Caller ensures the function pointer is compatible via adapter pattern.
*/
Expand Down
Loading