Support for special directives for MC9S08DZ60ACLH on IDE 11.1 - @tiny and Bit

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Support for special directives for MC9S08DZ60ACLH on IDE 11.1 - @tiny and Bit

669 次查看
lslonim
Contributor II

I am supporting old code for the MC9S08DZ60ACLH. IDE version 11.1 is the last one that supports that processor so that's what I'm using, per NXP support. The old code uses "bit" as a data type, and "@tiny" as an attribute. This IDE doesn't know what they mean. Can someone give me an idea how to work around those two? I filed a support case a week ago about this and nothing happened.

Thanks for any assistance,

Lloyd Slonim

extern bit flg_test_failed;

extern word @tiny bg_tmp; /* used to assure background word accesses to data used in interrupts are atomic (avoid interrupt disable time) */

 

1 回复

637 次查看
Pablo_Ramos
NXP Employee
NXP Employee

Hi,

The attribute "@tiny" and the data type bit is normally used on Cosmic compiler.

Cosmic Software - Products

Strict ANSI-C/C++ code can be ported without any modifications. Non ANSI-C keywords and pragmas are different or have different semantics

I recommend the technical note TN234 for further information regarding how to port Cosmic to CodeWarrior

Technical Note