S12x start12.c

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12x start12.c

1,039 Views
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 Kudos
Reply
1 Reply

726 Views
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 Kudos
Reply