code show as below:
RCC_ClocksTypeDef get_rcc_clock; //Get system clock status
RCC_GetClocksFreq(&get_rcc_clock); //When simulating, you can see the clocks of various peripherals in the structure get_rcc_clock
Notice:
The prototype of the structure RCC_ClocksTypeDef in the above code can be found in the library file stm32f10x_rcc.h as follows:
typedef struct
{
uint32_t SYSCLK_Frequency; /*!< returns SYSCLK clock frequency expressed in Hz */
uint32_t HCLK_Frequency; /*!< returns HCLK clock frequency expressed in Hz */
uint32_t PCLK1_Frequency; /*!< returns PCLK1 clock frequency expressed in Hz */
uint32_t PCLK2_Frequency; /*!< returns PCLK2 clock frequency expressed in Hz */
uint32_t ADCCLK_Frequency; /*!< returns ADCCLK clock frequency expressed in Hz */
}RCC_ClocksTypeDef;
As shown below:
Previous article:Detailed arrangement of STM32 clock system RCC
Next article:STM32 clock introduction and configuration method
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- Apple faces class action lawsuit from 40 million UK iCloud users, faces $27.6 billion in claims
- Apple faces class action lawsuit from 40 million UK iCloud users, faces $27.6 billion in claims
- The US asked TSMC to restrict the export of high-end chips, and the Ministry of Commerce responded
- The US asked TSMC to restrict the export of high-end chips, and the Ministry of Commerce responded
- PWM signal reading problem (please delete the post if the method has changed)
- Why is the timer called TIMER RA in Renesas R8 microcontroller? Isn't it usually TIMER1 or TIMER2?
- I have discovered a wave of MCU software and hardware anti-interference operations. Which ones are commonly used by front-line engineers in the forum?
- Pioneer official engineer's practical knowledge: HPM6000 series Security Flash introduction
- [Evaluation and experience of Zhongke Yihaiwei EQ6HL45 development platform] +04.RTC board test and debug (zmj)
- Xianji official engineer's dry goods: How to use the HPM6000 series on-chip SRAM
- Gizwits IoT Platform + MSP430G2553 + Low-power Li-ion Battery Smart Manager
- Is it better to use logic level MOS or standard level MOS for DCDC circuit driving?
- A small question about COMSOL
- It's settled. Twitter is laying off more than 50% of its employees. The ratio of M to IC is 1:20. All top executives will be laid off.