Skip to content

Commit

Permalink
stm32/h7: Implemented support for the RCC reset status register
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Aug 11, 2024
1 parent 45cff23 commit f9a9b6b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions include/libopencm3/stm32/h7/rcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ LGPL License Terms @ref lgpl_license
#define RCC_APB2RSTR MMIO32(RCC_BASE + 0x098)
#define RCC_APB3RSTR MMIO32(RCC_BASE + 0x08C)
#define RCC_APB4RSTR MMIO32(RCC_BASE + 0x09C)
#define RCC_RSR MMIO32(RCC_BASE + 0x0D0)
#define RCC_AHB1ENR MMIO32(RCC_BASE + 0x0D8)
#define RCC_AHB2ENR MMIO32(RCC_BASE + 0x0DC)
#define RCC_AHB3ENR MMIO32(RCC_BASE + 0x0D4)
Expand Down Expand Up @@ -306,6 +307,22 @@ LGPL License Terms @ref lgpl_license
#define RCC_PLLNDIVR_DIVN(n) (((n) - 1) << RCC_PLLNDIVR_DIVN_SHIFT)
/**@}*/

/** @defgroup rcc_rsr_values RCC_RSR Values
* @ingroup rcc_registers
@{*/
#define RCC_RSR_RMVF (1U << 16U)
#define RCC_RSR_CPURSTF (1U << 17U)
#define RCC_RSR_D1RSTF (1U << 19U)
#define RCC_RSR_D2RSTF (1U << 20U)
#define RCC_RSR_BORRESTF (1U << 21U)
#define RCC_RSR_PINRSTF (1U << 22U)
#define RCC_RSR_PORRSTF (1U << 23U)
#define RCC_RSR_SFTRSTF (1U << 24U)
#define RCC_RSR_IWDG1RSTF (1U << 26U)
#define RCC_RSR_WWDG1RSTF (1U << 28U)
#define RCC_RSR_LPWRRSTF (1U << 30U)
/**@}*/

/** @defgroup rcc_bdcr_values RCC_BDCR Values
* @ingroup rcc_registers
@{*/
Expand Down

0 comments on commit f9a9b6b

Please sign in to comment.