2009-04-12 14:16:18     Question about bfin_ppi.c Revision 6175

Document created by Aaronwu Employee on Aug 14, 2013
Version 1Show Document
  • View in full screen mode

2009-04-12 14:16:18     Question about bfin_ppi.c Revision 6175

Roy Shu (GERMANY)

Message: 72551   

 

Hallo,

 

i am using the ppi driver of bf537 for the acquisition of data and recently i have downloaded the newest Revision 6175 of PPI-Driver. But i can not find the bfin_write_PPI_... commands in this Revision, so how can i write the matched content into the PPI registers such as PPI_CONTROL, PPI_DELAY etc. I have already used the earlier Revision of PPI Driver with the bfin_write_PPI_... commands, but there was fifo overflow fault in my running program by higher than 3M Hz.

 

 

 

The Other question: why is there no function "setup_gpio_for_PPI" in the Revision 6175?

 

 

 

thx

QuoteReplyEditDelete

 

 

2009-04-12 16:10:01     Re: Question about bfin_ppi.c Revision 6175

Mike Frysinger (UNITED STATES)

Message: 72553   

 

the registers are all accessed through the struct now

 

read the commit log -- it explains what happened to the setup_gpio_for_PPI func

QuoteReplyEditDelete

 

 

2009-04-12 17:51:56     Re: Question about bfin_ppi.c Revision 6175

Roy Shu (GERMANY)

Message: 72554   

 

Hi Mike,

 

thx, but where is the commit log? Earlier i  wrote the code in my program:

 

..........................................

 

typedef struct cfgTableStruct

{

    unsigned int cmd, arg;

} CfgTable;

 

 

CfgTable ppiSlaveTable1D[] = {

    { CMD_PPI_PORT_DIRECTION, CFG_PPI_PORT_DIR_RX },

    { CMD_PPI_XFR_TYPE, CFG_PPI_XFR_TYPE_NON656 },

    { CMD_PPI_PORT_CFG, CFG_PPI_PORT_CFG_NOSYNC },

    { CMD_PPI_FIELD_SELECT, CFG_PPI_FIELD_SELECT_IT },

    { CMD_PPI_PACKING, CFG_PPI_PACK_DISABLE },

    { CMD_PPI_SKIPPING, CFG_PPI_SKIP_DISABLE },

    { CMD_PPI_SKIP_ODDEVEN, CFG_PPI_SKIP_ODD },

    { CMD_PPI_DATALEN, CFG_PPI_DATALEN_16 },  

    { CMD_PPI_CLK_EDGE, CFG_PPI_CLK_EDGE_FALL },

    { CMD_PPI_TRIG_EDGE, CFG_PPI_TRIG_EDGE_RISE },

    { CMD_PPI_SET_DIMS, CFG_PPI_DIMS_1D },

    { CMD_PPI_DELAY, 1 },

    { CMD_PPI_SETGPIO },        

    { 0, 0 }

};

 

..........................

 

while ( table->cmd ){

            retval = ioctl( devFD, table->cmd, table->arg );

        if(retval){

            perror("device ioctl error");

            return(-1);

        }

 

....................

 

 

 

in while-loop i can configure the PPI regs. And now can i still use this method to configure the regs?

 

thanks

QuoteReplyEditDelete

 

 

2009-04-12 18:45:27     Re: Question about bfin_ppi.c Revision 6175

Mike Frysinger (UNITED STATES)

Message: 72556   

 

you already found the svn tree, so read the history link for the file

Attachments

    Outcomes