S12x start12.c

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

S12x start12.c

1,040件の閲覧回数
chenchenchen
Contributor II

HI!

       I read start12.c,how do I know some marco is open or not? ex: #if defined(__HCS12X__) && defined(FAR_DATA), then how do I know that '__HCS12X__' and 'FAR_DATA'  are defined or not ?

0 件の賞賛
返信
1 返信

727件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Chen,

'__HCS12X__' is defined in CPU definition. See below:

pastedImage_1.png

in above picture step 6,

__HC12__: always defined

__HCS12__: defined for the -CpuHCS12 and -CpuHCS12X options

__HCS12X__: defined for the -CpuHCS12X option

__HCS12XE__: defined for the -CpuHCS12XE option

By default, __FAR_DATA is not enabled. If you need enable __FAR_DATA, we can define it in compiler command line arguments. see example:

pastedImage_2.png

Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信