2015-02-20 04: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 04: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 05: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.