cancel
Showing results for 
Search instead for 
Did you mean: 

Different ways(syntax) to write resgisters in Keil IDE

AMat.1
Associate II

Hi all, i saw someone use a different way to write instructions in keil IDE , where they would write something similar to what i tried to do in the photo.i usually would write which workis just fine , any ideas how to write what im trying to ?

1 REPLY 1
AMat.1
Associate II

my bad, photos didnt upload , this is the way that works RCC->APB2ENR = 0x5 ; //B0 = AFIOEN   B1/7/8/13/15=0 B2=IOPAEN  B9=ADC1EN  B11=TIM1EN  B12= SPI1EN B14=USART1EN

and this is the one that gave a warning (implicit declaration of function'RCC_APB2ENR' is invalid in C99

RCC_APB2ENR (0x5) ;

the MCU is the stm32 bluepill