cancel
Showing results for 
Search instead for 
Did you mean: 

[HELP]The diffrence between RCC_GetITStatus and RCC_GetFlagStatus

croket_2512
Associate II
Posted on December 27, 2014 at 09:44

Hi,

Can somebody tell me the difference between two function RCC_GetITStatus and RCC_GetFlagStatus? And which case should I use for each one? I use STM32F103C8 chip.

Thank you.

Best regards.
2 REPLIES 2
uc2013135191
Associate II
Posted on December 27, 2014 at 17:44

Hi,

If you check the source files it can help you allot. Your using the Cube or the Standard peripheral library? For which series?

In the standard peripheral library for F0 

 

For the RCC_GetITStatus:

It checks the RCC->CIR register for the flag you passed as parameter.

For the RCC_GetFlagStatus:

It checks various registers depending on which flag you want to check. It checks either:

RCC->CR - Clock control register

RCC->BDCR - RTC domain control register

RCC->CSR - Control/status register

RCC->CR2 -Clock control register 2

For more info about the registers check the reference manual.

To info about the functions and how they work remember to check the source files. They have really helpful comments 

croket_2512
Associate II
Posted on December 29, 2014 at 02:19

Hi,

I use Standard peripheral library and STM32F103C8. Thank you for supporting me! I also check the source file stm32f10x_rcc.c but did not pay attention to these.

Best regards.