?login_element?

Subversion Repositories NedoOS

Rev

Rev 8 | Blame | Compare with Previous | Last modification | View Log | Download

  1. /**
  2.   ******************************************************************************
  3.   * @file    opora_dma_defs.h
  4.   * @author  Phyton Application Team
  5.   * @version V1.0.0
  6.   * @date
  7.   * @brief   This file contains all the Special Function Registers definitions
  8.   *          for the DMA peripheral unit used in the Milandr OPORA
  9.   *          microcontrollers.
  10.   ******************************************************************************
  11.   * @copy
  12.   *
  13.   * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  14.   * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  15.   * TIME. AS A RESULT, PHYTON SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT
  16.   * OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  17.   * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  18.   * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  19.   *
  20.   * <h2><center>&copy; COPYRIGHT 2010 Phyton</center></h2>
  21.   ******************************************************************************
  22.   * FILE opora_dma_defs.h
  23.   */
  24.  
  25. /* Define to prevent recursive inclusion -------------------------------------*/
  26. #ifndef __OPORA_DMA_DEFS_H
  27. #define __OPORA_DMA_DEFS_H
  28.  
  29. /** @addtogroup __CMSIS CMSIS
  30.   * @{
  31.   */
  32.  
  33. /** @addtogroup __OPORA_Peripheral_Units OPORA Peripheral Units
  34.   * @{
  35.   */
  36.  
  37. /** @defgroup Periph_DMA DMA
  38.   * @{
  39.   */
  40.  
  41. /** @defgroup Periph_DMA_Data_Structures Data Structures
  42.   * @{
  43.   */
  44.  
  45. /** @defgroup Periph_DMA_TypeDef DMA_TypeDef
  46.   * @{
  47.   */
  48.  
  49. typedef struct {
  50.   __IO uint32_t STATUS;
  51.   __IO uint32_t CFG;
  52.   __IO uint32_t CTRL_BASE_PTR;
  53.   __IO uint32_t ALT_CTRL_BASE_PTR;
  54.   __IO uint32_t WAITONREQ_STATUS;
  55.   __IO uint32_t CHNL_SW_REQUEST;
  56.   __IO uint32_t CHNL_USEBURST_SET;
  57.   __IO uint32_t CHNL_USEBURST_CLR;
  58.   __IO uint32_t CHNL_REQ_MASK_SET;
  59.   __IO uint32_t CHNL_REQ_MASK_CLR;
  60.   __IO uint32_t CHNL_ENABLE_SET;
  61.   __IO uint32_t CHNL_ENABLE_CLR;
  62.   __IO uint32_t CHNL_PRI_ALT_SET;
  63.   __IO uint32_t CHNL_PRI_ALT_CLR;
  64.   __IO uint32_t CHNL_PRIORITY_SET;
  65.   __IO uint32_t CHNL_PRIORITY_CLR;
  66.        uint32_t RESERVED0[3];
  67.   __IO uint32_t ERR_CLR;
  68. } DMA_TypeDef;
  69.  
  70. /** @} */ /* End of group Periph_DMA_TypeDef */
  71.  
  72. /** @} */ /* End of group Periph_DMA_Data_Structures */
  73.  
  74. /** @defgroup Periph_DMA_Defines Defines
  75.   * @{
  76.   */
  77.  
  78. /** @defgroup Periph_DMA_DMA_STATUS_Bits DMA_STATUS
  79.   * @{
  80.   */
  81.  
  82. #define DMA_STATUS_MASTER_ENABLE_OFFS           0
  83. #define DMA_STATUS_MASTER_ENABLE                ((uint32_t)0x00000001)
  84.  
  85. #define DMA_STATUS_STATE_OFFS                   4
  86. #define DMA_STATUS_STATE_MASK                   ((uint32_t)0x000000F0)
  87.  
  88. #define DMA_STATUS_CHNLS_MINUS1_OFFS            16
  89. #define DMA_STATUS_CHNLS_MINUS1_MASK            ((uint32_t)0x001F0000)
  90.  
  91. #define DMA_STATUS_TEST_STATUS_OFFS             28
  92. #define DMA_STATUS_TEST_STATUS_MASK             ((uint32_t)0xF0000000)
  93.  
  94.  
  95. /** @} */ /* End of group Periph_DMA_DMA_STATUS_Bits */
  96.  
  97. /** @} */ /* End of group Periph_DMA_Defines */
  98.  
  99. /** @defgroup Periph_DMA_Defines Defines
  100.   * @{
  101.   */
  102.  
  103. /** @defgroup Periph_DMA_DMA_CFG_Bits DMA_CFG
  104.   * @{
  105.   */
  106.  
  107. #define DMA_CFG_MASTER_ENABLE_OFFS              0
  108. #define DMA_CFG_MASTER_ENABLE                   ((uint32_t)0x00000001)
  109.  
  110. #define DMA_CFG_CHNL_PROT_CTRL_OFFS             5
  111. #define DMA_CFG_CHNL_PROT_CTRL_MASK             ((uint32_t)0x000000E0)
  112.  
  113.  
  114. /** @} */ /* End of group Periph_DMA_DMA_CFG_Bits */
  115.  
  116. /** @} */ /* End of group Periph_DMA_Defines */
  117.  
  118. /** @} */ /* End of group Periph_DMA */
  119.  
  120. /** @} */ /* End of group __OPORA_Peripheral_Units */
  121.  
  122. /** @} */ /* End of group __CMSIS */
  123.  
  124. #endif /* __OPORA_DMA_DEFS_H */
  125.  
  126. /******************* (C) COPYRIGHT 2010 Phyton *********************************
  127. *
  128. * END OF FILE opora_dma_defs.h */
  129.