sys_common.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. /* (c) Texas Instruments 2009-2013, All rights reserved. */
  12. #ifndef __SYS_COMMON_H__
  13. #define __SYS_COMMON_H__
  14. #include "hal_stdtypes.h"
  15. /* USER CODE BEGIN (0) */
  16. /* USER CODE END */
  17. /************************************************************/
  18. /* Type Definitions */
  19. /************************************************************/
  20. #ifndef _TBOOLEAN_DECLARED
  21. typedef boolean tBoolean;
  22. #define _TBOOLEAN_DECLARED
  23. #endif
  24. /** @enum loopBackType
  25. * @brief Loopback type definition
  26. */
  27. /** @typedef loopBackType_t
  28. * @brief Loopback type Type Definition
  29. *
  30. * This type is used to select the module Loopback type Digital or Analog loopback.
  31. */
  32. typedef enum loopBackType
  33. {
  34. Digital = 0U,
  35. Analog = 1U
  36. }loopBackType_t;
  37. /** @enum config_value_type
  38. * @brief config type definition
  39. */
  40. /** @typedef config_value_type_t
  41. * @brief config type Type Definition
  42. *
  43. * This type is used to specify the Initial and Current value.
  44. */
  45. typedef enum config_value_type
  46. {
  47. InitialValue,
  48. CurrentValue
  49. }config_value_type_t;
  50. /* USER CODE BEGIN (1) */
  51. /* USER CODE END */
  52. /********************************************************************************/
  53. /* The ASSERT macro, which does the actual assertion checking. Typically, this */
  54. /* will be for procedure arguments. */
  55. /********************************************************************************/
  56. #ifdef DEBUG
  57. #define ASSERT(expr) { \
  58. if(!(expr)) \
  59. { \
  60. __error__(__FILE__, __LINE__); \
  61. } \
  62. }
  63. #else
  64. #define ASSERT(expr)
  65. #endif
  66. /* USER CODE BEGIN (2) */
  67. /* USER CODE END */
  68. #endif