?login_element?

Subversion Repositories NedoOS

Rev

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

  1. /**
  2.   ******************************************************************************
  3.   * @file    opora_mil_std_1553_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 MIL_STD_1553 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_mil_std_1553_defs.h
  23.   */
  24.  
  25. /* Define to prevent recursive inclusion -------------------------------------*/
  26. #ifndef __OPORA_MIL_STD_1553_DEFS_H
  27. #define __OPORA_MIL_STD_1553_DEFS_H
  28.  
  29. /** @addtogroup __CMSIS CMSIS
  30.   * @{
  31.   */
  32.  
  33. /** @addtogroup __OPORA_Peripheral_Units OPORA Peripheral Units
  34.   * @{
  35.   */
  36.  
  37. /** @defgroup Periph_MIL_STD_1553 MIL_STD_1553
  38.   * @{
  39.   */
  40.  
  41. /** @defgroup Periph_MIL_STD_1553_Data_Structures Data Structures
  42.   * @{
  43.   */
  44.  
  45. /** @defgroup Periph_MIL_STD_1553_TypeDef MIL_STD_1553_TypeDef
  46.   * @{
  47.   */
  48.  
  49. typedef struct {
  50.        uint32_t RESERVED0[1024];
  51.   __IO uint32_t CONTROL;
  52.   __IO uint32_t STATUS;
  53.   __IO uint32_t ERROR;
  54.   __IO uint32_t CommandWord1;
  55.   __IO uint32_t CommandWord2;
  56.   __IO uint32_t ModeData;
  57.   __IO uint32_t StatusWord1;
  58.   __IO uint32_t StatusWord2;
  59.   __IO uint32_t INTEN;
  60.   __IO uint32_t MSG;
  61. } MIL_STD_1553_TypeDef;
  62.  
  63. /** @} */ /* End of group Periph_MIL_STD_1553_TypeDef */
  64.  
  65. /** @} */ /* End of group Periph_MIL_STD_1553_Data_Structures */
  66.  
  67. /** @defgroup Periph_MIL_STD_1553_Defines Defines
  68.   * @{
  69.   */
  70.  
  71. /** @defgroup Periph_MIL_STD_1553_MIL_STD_1553_CONTROL_Bits MIL_STD_1553_CONTROL
  72.   * @{
  73.   */
  74.  
  75. #define MIL_STD_1553_CONTROL_MR_OFFS            0
  76. #define MIL_STD_1553_CONTROL_MR                 ((uint32_t)0x00000001)
  77.  
  78. #define MIL_STD_1553_CONTROL_BCSTART_OFFS       1
  79. #define MIL_STD_1553_CONTROL_BCSTART            ((uint32_t)0x00000002)
  80.  
  81. #define MIL_STD_1553_CONTROL_BCMODE_OFFS        2
  82. #define MIL_STD_1553_CONTROL_BCMODE             ((uint32_t)0x00000004)
  83.  
  84. #define MIL_STD_1553_CONTROL_RTMODE_OFFS        3
  85. #define MIL_STD_1553_CONTROL_RTMODE             ((uint32_t)0x00000008)
  86.  
  87. #define MIL_STD_1553_CONTROL_TRA_OFFS           4
  88. #define MIL_STD_1553_CONTROL_TRA                ((uint32_t)0x00000010)
  89.  
  90. #define MIL_STD_1553_CONTROL_TRB_OFFS           5
  91. #define MIL_STD_1553_CONTROL_TRB                ((uint32_t)0x00000020)
  92.  
  93. #define MIL_STD_1553_CONTROL_RTA_OFFS           6
  94. #define MIL_STD_1553_CONTROL_RTA_MASK           ((uint32_t)0x000007C0)
  95.  
  96. #define MIL_STD_1553_CONTROL_DIV_OFFS           11
  97. #define MIL_STD_1553_CONTROL_DIV_MASK           ((uint32_t)0x0003F800)
  98.  
  99. #define MIL_STD_1553_CONTROL_RERR_OFFS          18
  100. #define MIL_STD_1553_CONTROL_RERR               ((uint32_t)0x00040000)
  101.  
  102.  
  103. /** @} */ /* End of group Periph_MIL_STD_1553_MIL_STD_1553_CONTROL_Bits */
  104.  
  105. /** @} */ /* End of group Periph_MIL_STD_1553_Defines */
  106.  
  107. /** @defgroup Periph_MIL_STD_1553_Defines Defines
  108.   * @{
  109.   */
  110.  
  111. /** @defgroup Periph_MIL_STD_1553_MIL_STD_1553_STATUS_Bits MIL_STD_1553_STATUS
  112.   * @{
  113.   */
  114.  
  115. #define MIL_STD_1553_STATUS_IDLE_OFFS           0
  116. #define MIL_STD_1553_STATUS_IDLE                ((uint32_t)0x00000001)
  117.  
  118. #define MIL_STD_1553_STATUS_RFLAGN_OFFS         1
  119. #define MIL_STD_1553_STATUS_RFLAGN              ((uint32_t)0x00000002)
  120.  
  121. #define MIL_STD_1553_STATUS_VALMESS_OFFS        2
  122. #define MIL_STD_1553_STATUS_VALMESS             ((uint32_t)0x00000004)
  123.  
  124. #define MIL_STD_1553_STATUS_ERR_OFFS            3
  125. #define MIL_STD_1553_STATUS_ERR                 ((uint32_t)0x00000008)
  126.  
  127.  
  128. /** @} */ /* End of group Periph_MIL_STD_1553_MIL_STD_1553_STATUS_Bits */
  129.  
  130. /** @} */ /* End of group Periph_MIL_STD_1553_Defines */
  131.  
  132. /** @defgroup Periph_MIL_STD_1553_Defines Defines
  133.   * @{
  134.   */
  135.  
  136. /** @defgroup Periph_MIL_STD_1553_MIL_STD_1553_ERROR_Bits MIL_STD_1553_ERROR
  137.   * @{
  138.   */
  139.  
  140. #define MIL_STD_1553_ERROR_NORCV_OFFS           0
  141. #define MIL_STD_1553_ERROR_NORCV                ((uint32_t)0x00000001)
  142.  
  143. #define MIL_STD_1553_ERROR_MANERR_OFFS          1
  144. #define MIL_STD_1553_ERROR_MANERR               ((uint32_t)0x00000002)
  145.  
  146. #define MIL_STD_1553_ERROR_SYNCERR_OFFS         2
  147. #define MIL_STD_1553_ERROR_SYNCERR              ((uint32_t)0x00000004)
  148.  
  149. #define MIL_STD_1553_ERROR_SEQERR_OFFS          3
  150. #define MIL_STD_1553_ERROR_SEQERR               ((uint32_t)0x00000008)
  151.  
  152. #define MIL_STD_1553_ERROR_GAPERR_OFFS          4
  153. #define MIL_STD_1553_ERROR_GAPERR               ((uint32_t)0x00000010)
  154.  
  155. #define MIL_STD_1553_ERROR_CONERR_OFFS          5
  156. #define MIL_STD_1553_ERROR_CONERR               ((uint32_t)0x00000020)
  157.  
  158. #define MIL_STD_1553_ERROR_PROERR_OFFS          6
  159. #define MIL_STD_1553_ERROR_PROERR               ((uint32_t)0x00000040)
  160.  
  161.  
  162. /** @} */ /* End of group Periph_MIL_STD_1553_MIL_STD_1553_ERROR_Bits */
  163.  
  164. /** @} */ /* End of group Periph_MIL_STD_1553_Defines */
  165.  
  166. /** @defgroup Periph_MIL_STD_1553_Defines Defines
  167.   * @{
  168.   */
  169.  
  170. /** @defgroup Periph_MIL_STD_1553_MIL_STD_1553_INTEN_Bits MIL_STD_1553_INTEN
  171.   * @{
  172.   */
  173.  
  174. #define MIL_STD_1553_INTEN_IDLEIE_OFFS          0
  175. #define MIL_STD_1553_INTEN_IDLEIE               ((uint32_t)0x00000001)
  176.  
  177. #define MIL_STD_1553_INTEN_RFLAGNIE_OFFS        1
  178. #define MIL_STD_1553_INTEN_RFLAGNIE             ((uint32_t)0x00000002)
  179.  
  180. #define MIL_STD_1553_INTEN_VALMESSIE_OFFS       2
  181. #define MIL_STD_1553_INTEN_VALMESSIE            ((uint32_t)0x00000004)
  182.  
  183. #define MIL_STD_1553_INTEN_ERRIE_OFFS           3
  184. #define MIL_STD_1553_INTEN_ERRIE                ((uint32_t)0x00000008)
  185.  
  186.  
  187. /** @} */ /* End of group Periph_MIL_STD_1553_MIL_STD_1553_INTEN_Bits */
  188.  
  189. /** @} */ /* End of group Periph_MIL_STD_1553_Defines */
  190.  
  191. /** @} */ /* End of group Periph_MIL_STD_1553 */
  192.  
  193. /** @} */ /* End of group __OPORA_Peripheral_Units */
  194.  
  195. /** @} */ /* End of group __CMSIS */
  196.  
  197. #endif /* __OPORA_MIL_STD_1553_DEFS_H */
  198.  
  199. /******************* (C) COPYRIGHT 2010 Phyton *********************************
  200. *
  201. * END OF FILE opora_mil_std_1553_defs.h */
  202.