I need to know the register name is changes every datasheet.
Hi, This is sureshkumar, I bought one STM32 popular udemy course, on that course have one video that trainer shows some registers to set the pin directions. but my data sheet is showing different name of the register. on that video showing MODE register (0-31), But mine is showing like this
"Each of the general-purpose I/O ports has two 32-bit configuration registers (GPIOx_CRL,GPIOx_CRH)" like 2 words 0-15 and 16-31
And Finally What is the meaning of Push Pull output ?.
Find the attachment CRL,CRH instead of MODE Register.

//PA5
//APB2
//RCC_APB2ENR For Port A to access = 0x00000004
//GPIOx_CRL and GPIOx_CRH
//GPIOx_ODR
#include "stm32f10x.h" // Device header
void delay(int para);
int main(void){
RCC->APB2ENR |= 0x100;
RCC->APB2RSTR |= 0x1;
GPIOA->CRH |= 0x30000;
GPIOA->CRL |= 0x00000;
while(1){
GPIOA->ODR |= 0x10;
delay(100);
GPIOA->ODR |= 0x00;
delay(100);
}
}
void delay(int para){
for(; para>0; para--){
for(int i=10000; i<10000; i--);
}
}What is the wrong in this program ?. this just try to blink the LED PA5