?login_element?

Subversion Repositories NedoOS

Rev

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

  1. /**
  2.   ******************************************************************************
  3.   * @file    opora_wwdg_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 WWDG 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_wwdg_defs.h
  23.   */
  24.  
  25. /* Define to prevent recursive inclusion -------------------------------------*/
  26. #ifndef __OPORA_WWDG_DEFS_H
  27. #define __OPORA_WWDG_DEFS_H
  28.  
  29. /** @addtogroup __CMSIS CMSIS
  30.   * @{
  31.   */
  32.  
  33. /** @addtogroup __OPORA_Peripheral_Units OPORA Peripheral Units
  34.   * @{
  35.   */
  36.  
  37. /** @defgroup Periph_WWDG WWDG
  38.   * @{
  39.   */
  40.  
  41. /** @defgroup Periph_WWDG_Data_Structures Data Structures
  42.   * @{
  43.   */
  44.  
  45. /** @defgroup Periph_WWDG_TypeDef WWDG_TypeDef
  46.   * @{
  47.   */
  48.  
  49. typedef struct {
  50.   __IO uint32_t CR;
  51.   __IO uint32_t CFR;
  52.   __IO uint32_t SR;
  53. } WWDG_TypeDef;
  54.  
  55. /** @} */ /* End of group Periph_WWDG_TypeDef */
  56.  
  57. /** @} */ /* End of group Periph_WWDG_Data_Structures */
  58.  
  59. /** @defgroup Periph_WWDG_Defines Defines
  60.   * @{
  61.   */
  62.  
  63. /** @defgroup Periph_WWDG_WWDG_CR_Bits WWDG_CR
  64.   * @{
  65.   */
  66.  
  67. #define WWDG_CR_T_OFFS                          0
  68. #define WWDG_CR_T_MASK                          ((uint32_t)0x0000007F)
  69.  
  70. #define WWDG_CR_WDGA_OFFS                       7
  71. #define WWDG_CR_WDGA                            ((uint32_t)0x00000080)
  72.  
  73.  
  74. /** @} */ /* End of group Periph_WWDG_WWDG_CR_Bits */
  75.  
  76. /** @} */ /* End of group Periph_WWDG_Defines */
  77.  
  78. /** @defgroup Periph_WWDG_Defines Defines
  79.   * @{
  80.   */
  81.  
  82. /** @defgroup Periph_WWDG_WWDG_CFR_Bits WWDG_CFR
  83.   * @{
  84.   */
  85.  
  86. #define WWDG_CFR_W_OFFS                         0
  87. #define WWDG_CFR_W_MASK                         ((uint32_t)0x0000007F)
  88.  
  89. #define WWDG_CFR_WGTB_OFFS                      7
  90. #define WWDG_CFR_WGTB_MASK                      ((uint32_t)0x00000180)
  91.  
  92. #define WWDG_CFR_EWI_OFFS                       9
  93. #define WWDG_CFR_EWI                            ((uint32_t)0x00000200)
  94.  
  95.  
  96. /** @} */ /* End of group Periph_WWDG_WWDG_CFR_Bits */
  97.  
  98. /** @} */ /* End of group Periph_WWDG_Defines */
  99.  
  100. /** @} */ /* End of group Periph_WWDG */
  101.  
  102. /** @} */ /* End of group __OPORA_Peripheral_Units */
  103.  
  104. /** @} */ /* End of group __CMSIS */
  105.  
  106. #endif /* __OPORA_WWDG_DEFS_H */
  107.  
  108. /******************* (C) COPYRIGHT 2010 Phyton *********************************
  109. *
  110. * END OF FILE opora_wwdg_defs.h */
  111.