Merge bd0201714b into 6533756854
This commit is contained in:
commit
68892cb15c
|
|
@ -215,6 +215,9 @@ HAL_StatusTypeDef HAL_SRAM_Init(SRAM_HandleTypeDef *hsram, FSMC_NORSRAM_TimingTy
|
||||||
__FSMC_NORSRAM_ENABLE(hsram->Instance, hsram->Init.NSBank);
|
__FSMC_NORSRAM_ENABLE(hsram->Instance, hsram->Init.NSBank);
|
||||||
|
|
||||||
/* Initialize the SRAM controller state */
|
/* Initialize the SRAM controller state */
|
||||||
|
if (hsram->Init.WriteOperation == FSMC_WRITE_OPERATION_DISABLE)
|
||||||
|
hsram->State = HAL_SRAM_STATE_PROTECTED;
|
||||||
|
else
|
||||||
hsram->State = HAL_SRAM_STATE_READY;
|
hsram->State = HAL_SRAM_STATE_READY;
|
||||||
|
|
||||||
return HAL_OK;
|
return HAL_OK;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue