Hi I am at a loss, i have some training with C++ but when it comes to jargon words, I am very confused as I cannot find references for them. It's very different from programming for program for PC, not program for chip.
I know when it comes to words for the constants and variables. I know where to look for declarations. But when it comes to words for hardware parts like
- and in any other projects
are no C++. It is basic C : this is the way to address members of structures when the structure variable is a pointer (eg TIM1 is a pointer to a structure and its address is the timer1 base address in the STM312 processor, TIM1 -> SR is the SR member of the structure)
So these are directly pointing to STM32 peripherals registers. You have to refer to RM0008.pdf to get explanations on how to program every register. Another way if you are not familiar with such programmation is to use STM32 librairies. In most libraries, what you have to do is to fill a configuration structure with your implementation details and settings and call the relevant function in the library and this function will fill the registers according to your settings.
Last edited by pascal697 (2011-03-23 12:53:08)