MPC5634M registers

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

MPC5634M registers

985 Views
单片机颜
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

Labels (1)
Tags (1)
0 Kudos
1 Reply

737 Views
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 Kudos