2015-02-20 4:01 AM
I am unable to understand the following syntax
((ADC_TypeDef *) ADC1_BASE). Please help me understand the meaning of this code. Is this some kind of a pointer?2015-02-20 4:40 AM
This is basic C. Type conversion from defined constant integer to a pointer to a structure. Just find a nice book about C, it's a simple and very powerful language.
2015-02-20 5:17 AM
Casting a structure pointer to a specific memory address associated with the peripheral. The peripheral structure described the register space in memory. The in memory configuration of the registers is duplicated in USART1, USART2, etc.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.