?login_element?

Subversion Repositories NedoOS

Rev

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

  1. /**
  2.   ******************************************************************************
  3.   * @file    opora_bkp_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 BKP 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_bkp_defs.h
  23.   */
  24.  
  25. /* Define to prevent recursive inclusion -------------------------------------*/
  26. #ifndef __OPORA_BKP_DEFS_H
  27. #define __OPORA_BKP_DEFS_H
  28.  
  29. /** @addtogroup __CMSIS CMSIS
  30.   * @{
  31.   */
  32.  
  33. /** @addtogroup __OPORA_Peripheral_Units OPORA Peripheral Units
  34.   * @{
  35.   */
  36.  
  37. /** @defgroup Periph_BKP BKP
  38.   * @{
  39.   */
  40.  
  41. /** @defgroup Periph_BKP_Data_Structures Data Structures
  42.   * @{
  43.   */
  44.  
  45. /** @defgroup Periph_BKP_TypeDef BKP_TypeDef
  46.   * @{
  47.   */
  48.  
  49. typedef struct {
  50.   __IO uint32_t REG_00;
  51.   __IO uint32_t REG_01;
  52.   __IO uint32_t REG_02;
  53.   __IO uint32_t REG_03;
  54.   __IO uint32_t REG_04;
  55.   __IO uint32_t REG_05;
  56.   __IO uint32_t REG_06;
  57.   __IO uint32_t REG_07;
  58.   __IO uint32_t REG_08;
  59.   __IO uint32_t REG_09;
  60.   __IO uint32_t REG_0A;
  61.   __IO uint32_t REG_0B;
  62.   __IO uint32_t REG_0C;
  63.   __IO uint32_t REG_0D;
  64.   __IO uint32_t REG_0E;
  65.   __IO uint32_t REG_0F;
  66.   __IO uint32_t RTC_CNT;
  67.   __IO uint32_t RTC_DIV;
  68.   __IO uint32_t RTC_PRL;
  69.   __IO uint32_t RTC_ALRM;
  70.   __IO uint32_t RTC_CS;
  71. } BKP_TypeDef;
  72.  
  73. /** @} */ /* End of group Periph_BKP_TypeDef */
  74.  
  75. /** @} */ /* End of group Periph_BKP_Data_Structures */
  76.  
  77. /** @defgroup Periph_BKP_Defines Defines
  78.   * @{
  79.   */
  80.  
  81. /** @defgroup Periph_BKP_BKP_REG_0E_Bits BKP_REG_0E
  82.   * @{
  83.   */
  84.  
  85. #define BKP_REG_0E_LOW_OFFS                     0
  86. #define BKP_REG_0E_LOW_MASK                     ((uint32_t)0x00000007)
  87.  
  88. #define BKP_REG_0E_SelectRI_OFFS                3
  89. #define BKP_REG_0E_SelectRI_MASK                ((uint32_t)0x00000038)
  90.  
  91. #define BKP_REG_0E_JTAGA_OFFS                   6
  92. #define BKP_REG_0E_JTAGA                        ((uint32_t)0x00000040)
  93.  
  94. #define BKP_REG_0E_JTAGB_OFFS                   7
  95. #define BKP_REG_0E_JTAGB                        ((uint32_t)0x00000080)
  96.  
  97. #define BKP_REG_0E_Trim_OFFS                    8
  98. #define BKP_REG_0E_Trim_MASK                    ((uint32_t)0x00000700)
  99.  
  100. #define BKP_REG_0E_FPOR_OFFS                    11
  101. #define BKP_REG_0E_FPOR                         ((uint32_t)0x00000800)
  102.  
  103. #define BKP_REG_0E_BKP_REG_OFFS                 12
  104. #define BKP_REG_0E_BKP_REG_MASK                 ((uint32_t)0xFFFFF000)
  105.  
  106.  
  107. /** @} */ /* End of group Periph_BKP_BKP_REG_0E_Bits */
  108.  
  109. /** @} */ /* End of group Periph_BKP_Defines */
  110.  
  111. /** @defgroup Periph_BKP_Defines Defines
  112.   * @{
  113.   */
  114.  
  115. /** @defgroup Periph_BKP_BKP_REG_0F_Bits BKP_REG_0F
  116.   * @{
  117.   */
  118.  
  119. #define BKP_REG_0F_LSE_ON_OFFS                  0
  120. #define BKP_REG_0F_LSE_ON                       ((uint32_t)0x00000001)
  121.  
  122. #define BKP_REG_0F_LSE_BYP_OFFS                 1
  123. #define BKP_REG_0F_LSE_BYP                      ((uint32_t)0x00000002)
  124.  
  125. #define BKP_REG_0F_RTC_SEL_OFFS                 2
  126. #define BKP_REG_0F_RTC_SEL_MASK                 ((uint32_t)0x0000000C)
  127.  
  128. #define BKP_REG_0F_RTC_EN_OFFS                  4
  129. #define BKP_REG_0F_RTC_EN                       ((uint32_t)0x00000010)
  130.  
  131. #define BKP_REG_0F_CAL_OFFS                     5
  132. #define BKP_REG_0F_CAL_MASK                     ((uint32_t)0x00001FE0)
  133.  
  134. #define BKP_REG_0F_LSE_RDY_OFFS                 13
  135. #define BKP_REG_0F_LSE_RDY                      ((uint32_t)0x00002000)
  136.  
  137. #define BKP_REG_0F_BKP_REG_OFFS                 14
  138. #define BKP_REG_0F_BKP_REG                      ((uint32_t)0x00004000)
  139.  
  140. #define BKP_REG_0F_LSI_ON_OFFS                  15
  141. #define BKP_REG_0F_LSI_ON                       ((uint32_t)0x00008000)
  142.  
  143. #define BKP_REG_0F_LSI_TRIM_OFFS                16
  144. #define BKP_REG_0F_LSI_TRIM_MASK                ((uint32_t)0x001F0000)
  145.  
  146. #define BKP_REG_0F_LSI_RDY_OFFS                 21
  147. #define BKP_REG_0F_LSI_RDY                      ((uint32_t)0x00200000)
  148.  
  149. #define BKP_REG_0F_HSI_ON_OFFS                  22
  150. #define BKP_REG_0F_HSI_ON                       ((uint32_t)0x00400000)
  151.  
  152. #define BKP_REG_0F_HSI_RDY_OFFS                 23
  153. #define BKP_REG_0F_HSI_RDY                      ((uint32_t)0x00800000)
  154.  
  155. #define BKP_REG_0F_HSI_TRIM_OFFS                24
  156. #define BKP_REG_0F_HSI_TRIM_MASK                ((uint32_t)0x3F000000)
  157.  
  158. #define BKP_REG_0F_STANDBY_OFFS                 30
  159. #define BKP_REG_0F_STANDBY                      ((uint32_t)0x40000000)
  160.  
  161. #define BKP_REG_0F_RTC_RESET_OFFS               31
  162. #define BKP_REG_0F_RTC_RESET                    ((uint32_t)0x80000000)
  163.  
  164.  
  165. /** @} */ /* End of group Periph_BKP_BKP_REG_0F_Bits */
  166.  
  167. /** @} */ /* End of group Periph_BKP_Defines */
  168.  
  169. /** @defgroup Periph_BKP_Defines Defines
  170.   * @{
  171.   */
  172.  
  173. /** @defgroup Periph_BKP_BKP_RTC_CS_Bits BKP_RTC_CS
  174.   * @{
  175.   */
  176.  
  177. #define BKP_RTC_CS_OWF_OFFS                     0
  178. #define BKP_RTC_CS_OWF                          ((uint32_t)0x00000001)
  179.  
  180. #define BKP_RTC_CS_SECF_OFFS                    1
  181. #define BKP_RTC_CS_SECF                         ((uint32_t)0x00000002)
  182.  
  183. #define BKP_RTC_CS_ALRF_OFFS                    2
  184. #define BKP_RTC_CS_ALRF                         ((uint32_t)0x00000004)
  185.  
  186. #define BKP_RTC_CS_OWF_IE_OFFS                  3
  187. #define BKP_RTC_CS_OWF_IE                       ((uint32_t)0x00000008)
  188.  
  189. #define BKP_RTC_CS_SECF_IE_OFFS                 4
  190. #define BKP_RTC_CS_SECF_IE                      ((uint32_t)0x00000010)
  191.  
  192. #define BKP_RTC_CS_ALRF_IE_OFFS                 5
  193. #define BKP_RTC_CS_ALRF_IE                      ((uint32_t)0x00000020)
  194.  
  195. #define BKP_RTC_CS_WEC_OFFS                     6
  196. #define BKP_RTC_CS_WEC                          ((uint32_t)0x00000040)
  197.  
  198.  
  199. /** @} */ /* End of group Periph_BKP_BKP_RTC_CS_Bits */
  200.  
  201. /** @} */ /* End of group Periph_BKP_Defines */
  202.  
  203. /** @} */ /* End of group Periph_BKP */
  204.  
  205. /** @} */ /* End of group __OPORA_Peripheral_Units */
  206.  
  207. /** @} */ /* End of group __CMSIS */
  208.  
  209. #endif /* __OPORA_BKP_DEFS_H */
  210.  
  211. /******************* (C) COPYRIGHT 2010 Phyton *********************************
  212. *
  213. * END OF FILE opora_bkp_defs.h */
  214.