123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- /*!
- *****************************************************************************
- ** \file gh_lib/GK710X/inc/gh_hw_cfg.h
- **
- ** \version $Id: gh_hw_cfg.h 715 2017-08-23 01:51:39Z yulindeng $
- **
- ** \brief
- **
- ** \attention THIS SAMPLE CODE IS PROVIDED AS IS. GOKE MICROELECTRONICS
- ** ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
- ** OMMISSIONS
- **
- ** (C) Copyright 2012-2016 by GOKE MICROELECTRONICS CO.,LTD
- **
- *****************************************************************************
- */
- #ifndef _GH_HW_CFG_H_
- #define _GH_HW_CFG_H_
- #include "gh_usb.h"
- #ifdef __LINUX__
- #include "reg4linux.h"
- #else
- #define FIO_ADDRESS(block,address) (address)
- #define FIO_MOFFSET(block,moffset) (moffset)
- #endif
- #ifndef __LINUX__
- #include "gtypes.h" /* global type definitions */
- #include "gh_lib_cfg.h" /* configuration */
- #endif
- //*****************************************************************************
- //*****************************************************************************
- //** Defines and Macros
- //*****************************************************************************
- //*****************************************************************************
- #define OFFSET_EP_FIFO_IDX (0x40)
- #define REG_USB_ADDR_FIFO_EP(i) FIO_ADDRESS(USB, (REG_USB_FIFOS + OFFSET_EP_FIFO_IDX*(i)))
- #define I2S_RX_DMA_CHAN 1
- #define I2S_TX_DMA_CHAN 2
- #define MUSB_RX_DMA_CHAN 3
- #define MUSB_TX_DMA_CHAN 0
- //*****************************************************************************
- //*****************************************************************************
- //** Enumerated types
- //*****************************************************************************
- //*****************************************************************************
- //*****************************************************************************
- //*****************************************************************************
- //** Data Structures
- //*****************************************************************************
- //*****************************************************************************
- //*****************************************************************************
- //*****************************************************************************
- //** Global Data
- //*****************************************************************************
- //*****************************************************************************
- //*****************************************************************************
- //*****************************************************************************
- //** API Functions
- //*****************************************************************************
- //*****************************************************************************
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif /* _GH_HW_CFG_H_ */
|