?login_element?

Subversion Repositories NedoOS

Rev

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

  1. /**
  2.   ******************************************************************************
  3.   * @file    opora_power_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 POWER 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_power_defs.h
  23.   */
  24.  
  25. /* Define to prevent recursive inclusion -------------------------------------*/
  26. #ifndef __OPORA_POWER_DEFS_H
  27. #define __OPORA_POWER_DEFS_H
  28.  
  29. /** @addtogroup __CMSIS CMSIS
  30.   * @{
  31.   */
  32.  
  33. /** @addtogroup __OPORA_Peripheral_Units OPORA Peripheral Units
  34.   * @{
  35.   */
  36.  
  37. /** @defgroup Periph_POWER POWER
  38.   * @{
  39.   */
  40.  
  41. /** @defgroup Periph_POWER_Data_Structures Data Structures
  42.   * @{
  43.   */
  44.  
  45. /** @defgroup Periph_POWER_TypeDef POWER_TypeDef
  46.   * @{
  47.   */
  48.  
  49. typedef struct {
  50.   __IO uint32_t PVDCS;
  51. } POWER_TypeDef;
  52.  
  53. /** @} */ /* End of group Periph_POWER_TypeDef */
  54.  
  55. /** @} */ /* End of group Periph_POWER_Data_Structures */
  56.  
  57. /** @defgroup Periph_POWER_Defines Defines
  58.   * @{
  59.   */
  60.  
  61. /** @defgroup Periph_POWER_POWER_PVDCS_Bits POWER_PVDCS
  62.   * @{
  63.   */
  64.  
  65. #define POWER_PVDCS_PVDEN_OFFS                  0
  66. #define POWER_PVDCS_PVDEN                       ((uint32_t)0x00000001)
  67.  
  68. #define POWER_PVDCS_PBLS_OFFS                   1
  69. #define POWER_PVDCS_PBLS_MASK                   ((uint32_t)0x00000006)
  70.  
  71. #define POWER_PVDCS_PLS_OFFS                    3
  72. #define POWER_PVDCS_PLS_MASK                    ((uint32_t)0x00000038)
  73.  
  74. #define POWER_PVDCS_PVBD_OFFS                   6
  75. #define POWER_PVDCS_PVBD                        ((uint32_t)0x00000040)
  76.  
  77. #define POWER_PVDCS_PVD_OFFS                    7
  78. #define POWER_PVDCS_PVD                         ((uint32_t)0x00000080)
  79.  
  80. #define POWER_PVDCS_IEPVBD_OFFS                 8
  81. #define POWER_PVDCS_IEPVBD                      ((uint32_t)0x00000100)
  82.  
  83. #define POWER_PVDCS_IEPVD_OFFS                  9
  84. #define POWER_PVDCS_IEPVD                       ((uint32_t)0x00000200)
  85.  
  86. #define POWER_PVDCS_INVB_OFFS                   10
  87. #define POWER_PVDCS_INVB                        ((uint32_t)0x00000400)
  88.  
  89. #define POWER_PVDCS_INV_OFFS                    11
  90. #define POWER_PVDCS_INV                         ((uint32_t)0x00000800)
  91.  
  92.  
  93. /** @} */ /* End of group Periph_POWER_POWER_PVDCS_Bits */
  94.  
  95. /** @} */ /* End of group Periph_POWER_Defines */
  96.  
  97. /** @} */ /* End of group Periph_POWER */
  98.  
  99. /** @} */ /* End of group __OPORA_Peripheral_Units */
  100.  
  101. /** @} */ /* End of group __CMSIS */
  102.  
  103. #endif /* __OPORA_POWER_DEFS_H */
  104.  
  105. /******************* (C) COPYRIGHT 2010 Phyton *********************************
  106. *
  107. * END OF FILE opora_power_defs.h */
  108.