Skip to content

Commit ae492d9

Browse files
author
Edmund Hsu
committed
Add consistent ADuCM3029 System return codes and remove duplicate codes
1 parent 2e081dc commit ae492d9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/bsp/system_ADuCM3029.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ extern "C" {
4040
#endif /* __cplusplus */
4141

4242
/*! \cond PRIVATE */
43-
#define SUCCESS 0u
44-
45-
#define FAILURE 1u
43+
/*! System API function return codes */
44+
typedef enum
45+
{
46+
ADI_SYS_SUCCESS = 0, /*!< No error detected. */
47+
ADI_SYS_FAILURE, /*!< The API call failed. */
48+
} ADI_SYS_RESULT;
4649

4750
/* System clock constant */
4851
#define __HFOSC 26000000u

0 commit comments

Comments
 (0)