Add consistent ADuCM3029 System return codes and remove duplicate codes

pull/7920/head
Edmund Hsu 2018-08-29 13:38:30 +10:00
parent 2e081dc7d0
commit ae492d9c4a
1 changed files with 6 additions and 3 deletions

View File

@ -40,9 +40,12 @@ extern "C" {
#endif /* __cplusplus */
/*! \cond PRIVATE */
#define SUCCESS 0u
#define FAILURE 1u
/*! System API function return codes */
typedef enum
{
ADI_SYS_SUCCESS = 0, /*!< No error detected. */
ADI_SYS_FAILURE, /*!< The API call failed. */
} ADI_SYS_RESULT;
/* System clock constant */
#define __HFOSC 26000000u