Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Digital motor control Driver Library

$
0
0

Hi,

I wish to make multiple instances in CAP_DRIVE macro. But I think that f2803xdrvlib.h has some errors.

#ifndef  __F2803xDRVLIB_H__
#define __F2803xDRVLIB_H__


// Used to indirectly access all EPWM modules
volatile struct EPWM_REGS *ePWM[] =
       { &EPwm1Regs,   //intentional: (ePWM[0] not used)
       &EPwm1Regs,
     &EPwm2Regs,
     &EPwm3Regs,
     &EPwm4Regs,
     &EPwm5Regs,
     &EPwm6Regs,
     &EPwm7Regs,
     
      };


// Used to indirectly access eQEP module
volatile struct EQEP_REGS *eQEP[] =
       { &EQep1Regs,
        &EQep1Regs,   
      };

// Used to indirectly access eQEP module
volatile struct ECAP_REGS *eCAP[] =
       { &ECap1Regs,
        &ECap1Regs,   
      };
     
#endif // __F2803xDRVLIB_H__

 I think it should be like this..

// Used to indirectly access eCAP modules

Volatile struct ECAP_REGS *eCAP[] =

{ &ECap1Regs,  //intentional: (eCAP[0] not used)

  &ECap1Regs,

  &ECap2Regs,

  &ECap3Regs,

   &ECap4Regs,

};

Pls comment,

Regards

Raghu


Viewing all articles
Browse latest Browse all 262198

Trending Articles