gh_hw_cfg.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*!
  2. *****************************************************************************
  3. ** \file gh_lib/GK710X/inc/gh_hw_cfg.h
  4. **
  5. ** \version $Id: gh_hw_cfg.h 715 2017-08-23 01:51:39Z yulindeng $
  6. **
  7. ** \brief
  8. **
  9. ** \attention THIS SAMPLE CODE IS PROVIDED AS IS. GOKE MICROELECTRONICS
  10. ** ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
  11. ** OMMISSIONS
  12. **
  13. ** (C) Copyright 2012-2016 by GOKE MICROELECTRONICS CO.,LTD
  14. **
  15. *****************************************************************************
  16. */
  17. #ifndef _GH_HW_CFG_H_
  18. #define _GH_HW_CFG_H_
  19. #include "gh_usb.h"
  20. #ifdef __LINUX__
  21. #include "reg4linux.h"
  22. #else
  23. #define FIO_ADDRESS(block,address) (address)
  24. #define FIO_MOFFSET(block,moffset) (moffset)
  25. #endif
  26. #ifndef __LINUX__
  27. #include "gtypes.h" /* global type definitions */
  28. #include "gh_lib_cfg.h" /* configuration */
  29. #endif
  30. //*****************************************************************************
  31. //*****************************************************************************
  32. //** Defines and Macros
  33. //*****************************************************************************
  34. //*****************************************************************************
  35. #define OFFSET_EP_FIFO_IDX (0x40)
  36. #define REG_USB_ADDR_FIFO_EP(i) FIO_ADDRESS(USB, (REG_USB_FIFOS + OFFSET_EP_FIFO_IDX*(i)))
  37. #define I2S_RX_DMA_CHAN 1
  38. #define I2S_TX_DMA_CHAN 2
  39. #define MUSB_RX_DMA_CHAN 3
  40. #define MUSB_TX_DMA_CHAN 0
  41. //*****************************************************************************
  42. //*****************************************************************************
  43. //** Enumerated types
  44. //*****************************************************************************
  45. //*****************************************************************************
  46. //*****************************************************************************
  47. //*****************************************************************************
  48. //** Data Structures
  49. //*****************************************************************************
  50. //*****************************************************************************
  51. //*****************************************************************************
  52. //*****************************************************************************
  53. //** Global Data
  54. //*****************************************************************************
  55. //*****************************************************************************
  56. //*****************************************************************************
  57. //*****************************************************************************
  58. //** API Functions
  59. //*****************************************************************************
  60. //*****************************************************************************
  61. #ifdef __cplusplus
  62. extern "C" {
  63. #endif
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #endif /* _GH_HW_CFG_H_ */