[HAL][RCC] Add a note in HAL_RCC_OscConfig() to inform the users of the steps to take if HSE failed to start
diff --git a/Src/stm32l4xx_hal_rcc.c b/Src/stm32l4xx_hal_rcc.c
index d79b814..43312f1 100644
--- a/Src/stm32l4xx_hal_rcc.c
+++ b/Src/stm32l4xx_hal_rcc.c
@@ -398,6 +398,8 @@
* @note Transition HSE Bypass to HSE On and HSE On to HSE Bypass are not
* supported by this macro. User should request a transition to HSE Off
* first and then HSE On or HSE Bypass.
+ * @note If HSE failed to start, HSE should be disabled before recalling
+ HAL_RCC_OscConfig().
* @retval HAL status
*/
HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
diff --git a/Src/stm32l4xx_hal_spi.c b/Src/stm32l4xx_hal_spi.c
index deae017..0019bfd 100644
--- a/Src/stm32l4xx_hal_spi.c
+++ b/Src/stm32l4xx_hal_spi.c
@@ -1558,7 +1558,7 @@
{
hspi->State = HAL_SPI_STATE_READY;
}
-
+
error :
__HAL_UNLOCK(hspi);
return errorcode;