MPC5634M registers

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

MPC5634M registers

1,315 次查看
单片机颜
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,067 次查看
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 项奖励
回复