Skip to main content
croket_2512
Associate
December 27, 2014
Question

[HELP]The diffrence between RCC_GetITStatus and RCC_GetFlagStatus

  • December 27, 2014
  • 2 replies
  • 1044 views
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.
    This topic has been closed for replies.

    2 replies

    uc2013135191
    Associate III
    December 27, 2014
    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
    December 29, 2015
    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.