|
|
@@ -2159,7 +2159,7 @@ __weak void HAL_SAI_ErrorCallback(SAI_HandleTypeDef *hsai)
|
|
|
* the configuration information for SAI module.
|
|
|
* @retval HAL state
|
|
|
*/
|
|
|
-HAL_SAI_StateTypeDef HAL_SAI_GetState(SAI_HandleTypeDef *hsai)
|
|
|
+HAL_SAI_StateTypeDef HAL_SAI_GetState(const SAI_HandleTypeDef *hsai)
|
|
|
{
|
|
|
return hsai->State;
|
|
|
}
|
|
|
@@ -2170,7 +2170,7 @@ HAL_SAI_StateTypeDef HAL_SAI_GetState(SAI_HandleTypeDef *hsai)
|
|
|
* the configuration information for the specified SAI Block.
|
|
|
* @retval SAI Error Code
|
|
|
*/
|
|
|
-uint32_t HAL_SAI_GetError(SAI_HandleTypeDef *hsai)
|
|
|
+uint32_t HAL_SAI_GetError(const SAI_HandleTypeDef *hsai)
|
|
|
{
|
|
|
return hsai->ErrorCode;
|
|
|
}
|