MPC5634M registers

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

MPC5634M registers

1,683件の閲覧回数
单片机颜
Contributor I

The followings are  sentences found in C Header File "etpuc.h" in AN 3769SW

     register_chan       chan ;       //  5 bits

     register_erta       erta ;       // 24 bits

     register_ertb       ertb ;       // 24 bits

     register_tcr1       tcr1 ;       // 24 bits

     register_tcr2       tcr2 ;       // 24 bits

     register_tpr        tpr  ;       // 16 bits

     register_trr        trr  ;       // 24 bits

     register_chan_base  chan_base;   // 24 bits

     register_link       link;        // 8 bits

But when cmpiled.

Error   : undefined identifier 'register_chan'

etpuc.h line 65        register_chan       chan ;       //  5 bits 

Error   : undefined identifier 'register_erta'

etpuc.h line 66        register_erta       erta ;       // 24 bits 

Error   : undefined identifier 'register_ertb'

etpuc.h line 67        register_ertb       ertb ;       // 24 bits 

Error   : undefined identifier 'register_tcr1'

etpuc.h line 68        register_tcr1       tcr1 ;       // 24 bits 

Error   : undefined identifier 'register_tcr2'

etpuc.h line 69        register_tcr2       tcr2 ;       // 24 bits 

Error   : undefined identifier 'register_tpr'

etpuc.h line 70        register_tpr        tpr  ;       // 16 bits 

Error   : undefined identifier 'register_trr'

etpuc.h line 71        register_trr        trr  ;       // 24 bits 

Error   : undefined identifier 'register_chan_base'

etpuc.h line 72        register_chan_base  chan_base;   // 24 bits 

Error   : undefined identifier 'register_link'

etpuc.h line 73        register_link       link;        // 8 bits 

 

So,who can tell me how to define registers such as ERTA and TCR1  correctly?

Thanks.

 

 

 

 

 

 

Original Attachment has been moved to: AN3769SW.zip

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

1,435件の閲覧回数
MilanBrejl
NXP Employee
NXP Employee

Do not compile eTPU code by the MPC5600 compiler. Do not mix eTPU code and CPU code. All files starting etpuc* are eTPU source codes.

0 件の賞賛
返信