gh_lib_cfg.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*!
  2. *******************************************************************************
  3. **
  4. ** \file gh_lib_cfg.h
  5. **
  6. ** \brief FH Library Configuration
  7. **
  8. ** Copyright: 2012 - 2013 (C) GoKe Microelectronics ShangHai Branch
  9. **
  10. ** \attention THIS SAMPLE CODE IS PROVIDED AS IS. GOKE MICROELECTRONICS
  11. ** ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
  12. ** OMMISSIONS.
  13. **
  14. ** \version
  15. **
  16. ******************************************************************************/
  17. #ifndef _GH_LIB_CFG_H
  18. #define _GH_LIB_CFG_H
  19. #include "gtypes.h"
  20. /*!
  21. *******************************************************************************
  22. **
  23. ** \brief Defines level of inlining.
  24. **
  25. ** This defines sets the level of inlining the register access
  26. ** functions. The following levels are possible:
  27. ** - 0 -> no inlining
  28. ** - 1 -> only functions which do not use mirror variables are inlined
  29. ** - 2 -> all functions are inlined
  30. **
  31. ** \note For Metaware compilers inlining takes affect only if -Hi or
  32. ** an optimisation level greater than 3 is set (-O4) and the switch
  33. ** -g is disabled. If DEBUG is enabled GH_INLINE_LEVEL will be set to 0
  34. ** automatically in each FH header file.
  35. **
  36. ******************************************************************************/
  37. #ifndef GH_INLINE_LEVEL
  38. #define GH_INLINE_LEVEL 0
  39. #endif
  40. /*!
  41. *******************************************************************************
  42. **
  43. ** \brief Defines the keyword to provoke inlining.
  44. **
  45. ******************************************************************************/
  46. #ifndef GH_INLINE
  47. #define GH_INLINE GINLINE
  48. #endif
  49. #endif /* _GH_LIB_CFG_H */