AnsweredAssumed Answered

MPC5634M registers

Question asked by 单片机 颜 on May 18, 2013

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

Outcomes