Skip to content

Commit

Permalink
fix stm32Cube HAL xspi driver
Browse files Browse the repository at this point in the history
Signed-off-by: F. Ramu <francois.ramu@st.com>
  • Loading branch information
FRASTM committed May 24, 2024
1 parent a9febc4 commit 4feab7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions stm32cube/stm32h5xx/drivers/include/stm32h5xx_hal_xspi.h
Original file line number Diff line number Diff line change
Expand Up @@ -909,13 +909,13 @@ HAL_StatusTypeDef HAL_XSPI_UnRegisterCallback(XSPI_HandleTypeDef *hxspi, HAL
HAL_StatusTypeDef HAL_XSPI_Abort(XSPI_HandleTypeDef *hxspi);
HAL_StatusTypeDef HAL_XSPI_Abort_IT(XSPI_HandleTypeDef *hxspi);
HAL_StatusTypeDef HAL_XSPI_SetFifoThreshold(XSPI_HandleTypeDef *hxspi, uint32_t Threshold);
uint32_t HAL_XSPI_GetFifoThreshold(const XSPI_HandleTypeDef *hxspi);
uint32_t HAL_XSPI_GetFifoThreshold(XSPI_HandleTypeDef *hxspi);
HAL_StatusTypeDef HAL_XSPI_SetMemoryType(XSPI_HandleTypeDef *hxspi, uint32_t Type);
HAL_StatusTypeDef HAL_XSPI_SetDeviceSize(XSPI_HandleTypeDef *hxspi, uint32_t Size);
HAL_StatusTypeDef HAL_XSPI_SetClockPrescaler(XSPI_HandleTypeDef *hxspi, uint32_t Prescaler);
HAL_StatusTypeDef HAL_XSPI_SetTimeout(XSPI_HandleTypeDef *hxspi, uint32_t Timeout);
uint32_t HAL_XSPI_GetError(const XSPI_HandleTypeDef *hxspi);
uint32_t HAL_XSPI_GetState(const XSPI_HandleTypeDef *hxspi);
uint32_t HAL_XSPI_GetError(XSPI_HandleTypeDef *hxspi);
uint32_t HAL_XSPI_GetState(XSPI_HandleTypeDef *hxspi);

/**
* @}
Expand Down
6 changes: 3 additions & 3 deletions stm32cube/stm32h5xx/drivers/src/stm32h5xx_hal_xspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2592,7 +2592,7 @@ HAL_StatusTypeDef HAL_XSPI_SetFifoThreshold(XSPI_HandleTypeDef *hxspi, uint32_t
* @param hxspi : XSPI handle.
* @retval Fifo threshold
*/
uint32_t HAL_XSPI_GetFifoThreshold(const XSPI_HandleTypeDef *hxspi)
uint32_t HAL_XSPI_GetFifoThreshold(XSPI_HandleTypeDef *hxspi)
{
return ((READ_BIT(hxspi->Instance->CR, XSPI_CR_FTHRES) >> XSPI_CR_FTHRES_Pos) + 1U);
}
Expand Down Expand Up @@ -2701,7 +2701,7 @@ HAL_StatusTypeDef HAL_XSPI_SetTimeout(XSPI_HandleTypeDef *hxspi, uint32_t Timeou
* @param hxspi : XSPI handle
* @retval XSPI Error Code
*/
uint32_t HAL_XSPI_GetError(const XSPI_HandleTypeDef *hxspi)
uint32_t HAL_XSPI_GetError(XSPI_HandleTypeDef *hxspi)
{
return hxspi->ErrorCode;
}
Expand All @@ -2711,7 +2711,7 @@ uint32_t HAL_XSPI_GetError(const XSPI_HandleTypeDef *hxspi)
* @param hxspi : XSPI handle
* @retval HAL state
*/
uint32_t HAL_XSPI_GetState(const XSPI_HandleTypeDef *hxspi)
uint32_t HAL_XSPI_GetState(XSPI_HandleTypeDef *hxspi)
{
/* Return XSPI handle state */
return hxspi->State;
Expand Down

0 comments on commit 4feab7a

Please sign in to comment.