PebbleOS v4.47.0-1362-gd278268fe
Loading...
Searching...
No Matches
STM32H7 RCC calls

What users of the STM32H7 RCC call beyond the class. More...

Functions

uint32_t pbl_clk_stm32h7_reset_flags (const struct pbl_clk_controller *ctrl, bool clear)
 Read the reset flags of the core running the code.
 

Detailed Description

What users of the STM32H7 RCC call beyond the class.

Function Documentation

◆ pbl_clk_stm32h7_reset_flags()

uint32_t pbl_clk_stm32h7_reset_flags ( const struct pbl_clk_controller *  ctrl,
bool  clear 
)

Read the reset flags of the core running the code.

The RCC keeps the causes of the resets since the flags were last cleared.

Parameters
ctrlThe RCC.
clearClear the flags after reading them.
Returns
The RSR register, which shows each core its own, RCC_RSR_ bits of hardware/stm32h7_rcc.h.