Platform drivers for Mbed.

Dependents:   EVAL-CN0535-FMCZ EVAL-CN0535-FMCZ EVAL-AD568x-AD569x EVAL-AD7606 ... more

Revision:
9:9e247b9c9abf
Parent:
8:70fc373a5f46
--- a/inc/error.h	Wed Feb 26 06:09:13 2020 +0000
+++ b/inc/error.h	Mon Jun 15 13:03:55 2020 +0000
@@ -1,5 +1,6 @@
 /***************************************************************************//**
  *   @file   error.h
+ *   @brief  Error codes definition
  *   @author DBogdan (dragos.bogdan@analog.com)
 ********************************************************************************
  * Copyright 2019(c) Analog Devices, Inc.
@@ -43,7 +44,13 @@
 /********************** Macros and Constants Definitions **********************/
 /******************************************************************************/
 
+#ifndef SUCCESS
 #define SUCCESS		0
+#endif
+#ifndef FAILURE
 #define FAILURE		-1
+#endif
+
+#define IS_ERR_VALUE(x)	((x) < 0)
 
 #endif // ERROR_H_