How to disable "warning: binary constants are a GCC extension" ?S32 SDK

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

How to disable "warning: binary constants are a GCC extension" ?S32 SDK

1,189件の閲覧回数
pjzmj2012
Contributor I

How to disable "warning: binary constants are a GCC extension" ?

SCG->RCCR=SCG_RCCR_SCS(6) /* Select PLL as clock source */
|SCG_RCCR_DIVCORE(0b01) /* DIVCORE=1, div. by 2: Core clock = 160/2 MHz = 80 MHz */
|SCG_RCCR_DIVBUS(0b01) /* DIVBUS=1, div. by 2: bus clock = 40 MHz */
|SCG_RCCR_DIVSLOW(0b10); /* DIVSLOW=2, div. by 2: SCG slow, flash clock= 26 2/3 MHz */

0 件の賞賛
2 返答(返信)

1,064件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, it should be enough to remove -pedantic option. Or you can just ignore it.

pastedImage_3.png

0 件の賞賛

1,064件の閲覧回数
pjzmj2012
Contributor I

in S32 Design Studio for ARM Version 2.2。

0 件の賞賛