ST librairy syntax
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2009-01-17 1:14 AM
Posted on January 17, 2009 at 10:14
ST librairy syntax
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
‎2011-05-17 3:59 AM
Posted on May 17, 2011 at 12:59
Hi all,
I´ve a probably stupid question but I prefer to be sure: Is there a difference between this two syntax for a if statement: ST use this statement in their librairy (for example): if ((ADCx->CR2 & CR2_CAL_Set) != (u32)RESET) or if ((ADCx->SR & ADC_FLAG) != (u8)RESET) And I used to write like this: if ((ADCx->CR2 & CR2_CAL_Set)) Because I prefer my syntax, I would like to know if there is a reason to write like ST (code size/speed)? ThanksOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 3:59 AM
Posted on May 17, 2011 at 12:59
no difference, just a matter of style.
