Advertisement
sta-s2z

Untitled

Oct 19th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.22 KB | None | 0 0
  1. diff --git a/system/Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x8.h b/system/Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x8.h
  2. index 6ab2fb48..de0f1102 100644
  3. --- a/system/Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x8.h
  4. +++ b/system/Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x8.h
  5. @@ -362,6 +362,13 @@ typedef struct
  6. __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x3C */
  7. __IO uint32_t TAFCR; /*!< RTC tamper and alternate function configuration register, Address offset: 0x40 */
  8. __IO uint32_t ALRMASSR; /*!< RTC alarm A sub second register, Address offset: 0x44 */
  9. + uint32_t RESERVED4; /*!< Reserved, Address offset: 0x48 */
  10. + uint32_t RESERVED5; /*!< Reserved, Address offset: 0x4C */
  11. + __IO uint32_t BKP0R; /*!< RTC backup register 0, Address offset: 0x50 */
  12. + __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */
  13. + __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */
  14. + __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */
  15. + __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */
  16. } RTC_TypeDef;
  17.  
  18. /**
  19. @@ -3361,6 +3368,7 @@ typedef struct
  20. */
  21. #define RTC_TAMPER1_SUPPORT /*!< TAMPER 1 feature support */
  22. #define RTC_TAMPER2_SUPPORT /*!< TAMPER 2 feature support */
  23. +#define RTC_BACKUP_SUPPORT /*!< BACKUP register feature support */
  24.  
  25. /******************** Bits definition for RTC_TR register ******************/
  26. #define RTC_TR_PM_Pos (22U)
  27. @@ -3810,6 +3818,34 @@ typedef struct
  28. #define RTC_ALRMASSR_SS_Msk (0x7FFFU << RTC_ALRMASSR_SS_Pos) /*!< 0x00007FFF */
  29. #define RTC_ALRMASSR_SS RTC_ALRMASSR_SS_Msk
  30.  
  31. +/******************** Bits definition for RTC_BKP0R register ***************/
  32. +#define RTC_BKP0R_Pos (0U)
  33. +#define RTC_BKP0R_Msk (0xFFFFFFFFU << RTC_BKP0R_Pos) /*!< 0xFFFFFFFF */
  34. +#define RTC_BKP0R RTC_BKP0R_Msk
  35. +
  36. +/******************** Bits definition for RTC_BKP1R register ***************/
  37. +#define RTC_BKP1R_Pos (0U)
  38. +#define RTC_BKP1R_Msk (0xFFFFFFFFU << RTC_BKP1R_Pos) /*!< 0xFFFFFFFF */
  39. +#define RTC_BKP1R RTC_BKP1R_Msk
  40. +
  41. +/******************** Bits definition for RTC_BKP2R register ***************/
  42. +#define RTC_BKP2R_Pos (0U)
  43. +#define RTC_BKP2R_Msk (0xFFFFFFFFU << RTC_BKP2R_Pos) /*!< 0xFFFFFFFF */
  44. +#define RTC_BKP2R RTC_BKP2R_Msk
  45. +
  46. +/******************** Bits definition for RTC_BKP3R register ***************/
  47. +#define RTC_BKP3R_Pos (0U)
  48. +#define RTC_BKP3R_Msk (0xFFFFFFFFU << RTC_BKP3R_Pos) /*!< 0xFFFFFFFF */
  49. +#define RTC_BKP3R RTC_BKP3R_Msk
  50. +
  51. +/******************** Bits definition for RTC_BKP4R register ***************/
  52. +#define RTC_BKP4R_Pos (0U)
  53. +#define RTC_BKP4R_Msk (0xFFFFFFFFU << RTC_BKP4R_Pos) /*!< 0xFFFFFFFF */
  54. +#define RTC_BKP4R RTC_BKP4R_Msk
  55. +
  56. +/******************** Number of backup registers ******************************/
  57. +#define RTC_BKP_NUMBER 0x00000005U
  58. +
  59. /*****************************************************************************/
  60. /* */
  61. /* Serial Peripheral Interface (SPI) */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement