?login_element?

Subversion Repositories NedoOS

Rev

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

  1. /**
  2.   ******************************************************************************
  3.   * @file    opora_eeprom_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 EEPROM 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_eeprom_defs.h
  23.   */
  24.  
  25. /* Define to prevent recursive inclusion -------------------------------------*/
  26. #ifndef __OPORA_EEPROM_DEFS_H
  27. #define __OPORA_EEPROM_DEFS_H
  28.  
  29. /** @addtogroup __CMSIS CMSIS
  30.   * @{
  31.   */
  32.  
  33. /** @addtogroup __OPORA_Peripheral_Units OPORA Peripheral Units
  34.   * @{
  35.   */
  36.  
  37. /** @defgroup Periph_EEPROM EEPROM
  38.   * @{
  39.   */
  40.  
  41. /** @defgroup Periph_EEPROM_Data_Structures Data Structures
  42.   * @{
  43.   */
  44.  
  45. /** @defgroup Periph_EEPROM_TypeDef EEPROM_TypeDef
  46.   * @{
  47.   */
  48.  
  49. typedef struct {
  50.   __IO uint32_t CMD;
  51.   __IO uint32_t ADR;
  52.   __IO uint32_t DI;
  53.   __IO uint32_t DO;
  54.   __IO uint32_t KEY;
  55. } EEPROM_TypeDef;
  56.  
  57. /** @} */ /* End of group Periph_EEPROM_TypeDef */
  58.  
  59. /** @} */ /* End of group Periph_EEPROM_Data_Structures */
  60.  
  61. /** @defgroup Periph_EEPROM_Defines Defines
  62.   * @{
  63.   */
  64.  
  65. /** @defgroup Periph_EEPROM_EEPROM_CMD_Bits EEPROM_CMD
  66.   * @{
  67.   */
  68.  
  69. #define EEPROM_CMD_CON_OFFS                     0
  70. #define EEPROM_CMD_CON                          ((uint32_t)0x00000001)
  71.  
  72. #define EEPROM_CMD_WR_OFFS                      1
  73. #define EEPROM_CMD_WR                           ((uint32_t)0x00000002)
  74.  
  75. #define EEPROM_CMD_RD_OFFS                      2
  76. #define EEPROM_CMD_RD                           ((uint32_t)0x00000004)
  77.  
  78. #define EEPROM_CMD_Delay_OFFS                   3
  79. #define EEPROM_CMD_Delay_MASK                   ((uint32_t)0x00000038)
  80.  
  81. #define EEPROM_CMD_XE_OFFS                      6
  82. #define EEPROM_CMD_XE                           ((uint32_t)0x00000040)
  83.  
  84. #define EEPROM_CMD_YE_OFFS                      7
  85. #define EEPROM_CMD_YE                           ((uint32_t)0x00000080)
  86.  
  87. #define EEPROM_CMD_SE_OFFS                      8
  88. #define EEPROM_CMD_SE                           ((uint32_t)0x00000100)
  89.  
  90. #define EEPROM_CMD_IFREN_OFFS                   9
  91. #define EEPROM_CMD_IFREN                        ((uint32_t)0x00000200)
  92.  
  93. #define EEPROM_CMD_ERASE_OFFS                   10
  94. #define EEPROM_CMD_ERASE                        ((uint32_t)0x00000400)
  95.  
  96. #define EEPROM_CMD_MAS1_OFFS                    11
  97. #define EEPROM_CMD_MAS1                         ((uint32_t)0x00000800)
  98.  
  99. #define EEPROM_CMD_PROG_OFFS                    12
  100. #define EEPROM_CMD_PROG                         ((uint32_t)0x00001000)
  101.  
  102. #define EEPROM_CMD_NVSTR_OFFS                   13
  103. #define EEPROM_CMD_NVSTR                        ((uint32_t)0x00002000)
  104.  
  105.  
  106. /** @} */ /* End of group Periph_EEPROM_EEPROM_CMD_Bits */
  107.  
  108. /** @} */ /* End of group Periph_EEPROM_Defines */
  109.  
  110. /** @} */ /* End of group Periph_EEPROM */
  111.  
  112. /** @} */ /* End of group __OPORA_Peripheral_Units */
  113.  
  114. /** @} */ /* End of group __CMSIS */
  115.  
  116. #endif /* __OPORA_EEPROM_DEFS_H */
  117.  
  118. /******************* (C) COPYRIGHT 2010 Phyton *********************************
  119. *
  120. * END OF FILE opora_eeprom_defs.h */
  121.