1 /** @file sys_common.h
2 *   @brief Common Header File
3 *   @date 29.May.2013
4 *   @version 03.05.02
5 *
6 *   This file contains:
7 *   - General Definitions
8 *   .
9 *   which are relevant for all drivers.
10 */
11 
12 /* (c) Texas Instruments 2009-2013, All rights reserved. */
13 
14 #ifndef __SYS_COMMON_H__
15 #define __SYS_COMMON_H__
16 
17 #include "hal_stdtypes.h"
18 
19 /* USER CODE BEGIN (0) */
20 /* USER CODE END */
21 
22 /************************************************************/
23 /* Type Definitions                                         */
24 /************************************************************/
25 
26 #ifndef _TBOOLEAN_DECLARED
27 typedef boolean tBoolean;
28 #define _TBOOLEAN_DECLARED
29 #endif
30 
31 /** @enum loopBackType
32 *   @brief Loopback type definition
33 */
34 /** @typedef loopBackType_t
35 *   @brief Loopback type Type Definition
36 *
37 *   This type is used to select the module Loopback type Digital or Analog loopback.
38 */
39 typedef enum loopBackType
40 {
41     Digital = 0U,
42     Analog = 1U
43 }loopBackType_t;
44 
45 /** @enum config_value_type
46 *   @brief config type definition
47 */
48 /** @typedef config_value_type_t
49 *   @brief config type Type Definition
50 *
51 *   This type is used to specify the Initial and Current value.
52 */
53 typedef enum config_value_type
54 {
55 	InitialValue,
56 	CurrentValue
57 }config_value_type_t;
58 
59 /* USER CODE BEGIN (1) */
60 /* USER CODE END */
61 
62 /********************************************************************************/
63 /* The ASSERT macro, which does the actual assertion checking.  Typically, this */
64 /* will be for procedure arguments.                                             */
65 /********************************************************************************/
66 #ifdef DEBUG
67 #define ASSERT(expr) {                                      \
68                          if(!(expr))                        \
69                          {                                  \
70                              __error__(__FILE__, __LINE__); \
71                          }                                  \
72                      }
73 #else
74 #define ASSERT(expr)
75 #endif
76 
77 /* USER CODE BEGIN (2) */
78 /* USER CODE END */
79 
80 #endif
81