This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Two different kind of instructions doing same

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