Skip to content

Commit 798178e

Browse files
committed
Removed Reset Reason from being cleared. Removed -Os from SPI Transmit and Receive function.
Signed-off-by: nilesh-dryad <[email protected]>
1 parent f1946d6 commit 798178e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Src/stm32u5xx_hal_rcc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ HAL_StatusTypeDef HAL_RCC_DeInit(void)
501501
WRITE_REG(RCC->CICR, 0xFFFFFFFFU);
502502

503503
/* Reset all CSR flags */
504-
SET_BIT(RCC->CSR, RCC_CSR_RMVF);
504+
//SET_BIT(RCC->CSR, RCC_CSR_RMVF);
505505

506506
/* Update the SystemCoreClock global variable */
507507
SystemCoreClock = MSI_VALUE;

Src/stm32u5xx_hal_spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ HAL_StatusTypeDef HAL_SPI_Receive(SPI_HandleTypeDef *hspi, uint8_t *pData, uint1
12541254
* @param Timeout: Timeout duration
12551255
* @retval HAL status
12561256
*/
1257-
HAL_StatusTypeDef HAL_SPI_TransmitReceive(SPI_HandleTypeDef *hspi, const uint8_t *pTxData, uint8_t *pRxData,
1257+
HAL_StatusTypeDef __attribute__((optimize("O0"))) HAL_SPI_TransmitReceive(SPI_HandleTypeDef *hspi, const uint8_t *pTxData, uint8_t *pRxData,
12581258
uint16_t Size, uint32_t Timeout)
12591259
{
12601260
HAL_StatusTypeDef errorcode = HAL_OK;

0 commit comments

Comments
 (0)