[HELP]The diffrence between RCC_GetITStatus and RCC_GetFlagStatus
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-12-27 12:44 AM
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 discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-12-27 8:44 AM
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 registerRCC->BDCR - RTC domain control registerRCC->CSR - Control/status registerRCC->CR2 -Clock control register 2For 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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-12-28 5:19 PM
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.