Skip to content

Commit b57f902

Browse files
author
Edmund Hsu
committed
Apply consistent system return code to adi_system_EnableRetention()
1 parent ae492d9 commit b57f902

File tree

1 file changed

+4
-4
lines changed
  • targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/TARGET_EV_COG_AD3029LZ/device

1 file changed

+4
-4
lines changed

targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/TARGET_EV_COG_AD3029LZ/device/system_ADuCM3029.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ void adi_system_EnableISRAM(bool bEnable)
259259
* \n
260260
* \n false :To disable retention during the hibernation.
261261
* \n
262-
* @return : SUCCESS : Configured successfully.
263-
* FAILURE : For invalid bank.
262+
* @return : ADI_SYS_SUCCESS : Configured successfully.
263+
* ADI_SYS_FAILURE : For invalid bank.
264264
* @note: Please note that respective linker file need to support the configuration. Only BANK-1 and
265265
BANK-2 of SRAM is valid.
266266
*/
@@ -269,7 +269,7 @@ uint32_t adi_system_EnableRetention(ADI_SRAM_BANK eBank,bool bEnable)
269269
#ifdef ADI_DEBUG
270270
if((eBank != ADI_SRAM_BANK_1) && (eBank != ADI_SRAM_BANK_2))
271271
{
272-
return FAILURE;
272+
return ADI_SYS_FAILURE;
273273
}
274274
#endif
275275
pADI_PMG0->PWRKEY = PWRKEY_VALUE_KEY;
@@ -282,5 +282,5 @@ uint32_t adi_system_EnableRetention(ADI_SRAM_BANK eBank,bool bEnable)
282282
pADI_PMG0->SRAMRET &= ~((uint32_t)eBank >> 1);
283283
}
284284

285-
return SUCCESS;
285+
return ADI_SYS_SUCCESS;
286286
}

0 commit comments

Comments
 (0)