Dear All I found two different kind of instructions doing same this in different meaner I am using Keil uVision4 IDE
One kind <per> GPIO_InitTypeDef GPIO_InitStruct; GPIO_InitStruct.GPIO_Pin = GPIO_Pin_0; // we want to configure PA0 GPIO_InitStruct.GPIO_Mode = GPIO_Mode_OUT; // we want it to be an out put GPIO_Init(GPIOA, &GPIO_InitStruct); // this passes the configuration to the Init </per>
Other kind <per> GPIOA->MODER |= GPIO_MODER_MODER0_0
</per>
Please advice what should be the two kind of instruction type ? Is this two kind of compilers? Dose same IDE support both instruction types? It would be much appreciated if some one direct to me some link to read about this
Thanks in advance
In additionally Please also advice where can I find my previous post in this forum
It's the "new" and "old" way of doing things.
The first is based on library code supplied.
The second method is based on just a header file describing all processor registers (and possibly some flags).
Being an old dog, I just prefer the old route.
Can you please give some example libraries for the type of GPIO_InitTypeDef GPIO_InitStruct; Does it needed to copy project folder or just installation type one Please advice
"Please also advice where can I find my previous post in this forum"
If it were me, I'd consider entering my name in the search box.
but then, since you do not want to let us know who you are, you have to remember which silly moniker you used last time.
Erik
Which name would you use?
But then you also beleive in studying datasheets, documents, textbooks, etc - which is clearly not The Way these days...
What do you mean, "example libraries"? Those definitions form part of the library!
And the Library includes a whole set of examples!