2008-02-22 16:09:26     Request file modification

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

2008-02-22 16:09:26     Request file modification

Bill Fassler (UNITED STATES)

Message: 51524    Could you guys add the PPI_CLEAR functionality to the BF561? I.E.

 

in uClinux-dist/linux-2.6.x/include/asm-blackfin/mach-bf561/cdefBF561.h

 

add:

 

#define bfin_clear_PPI0_STATUS()             bfin_write_PPI0_STATUS(0xFFFF)

#define bfin_clear_PPI1_STATUS()             bfin_write_PPI1_STATUS(0xFFFF)

 

I wind up using these in my camera driver (maybe even the LCD driver, I don't recall).

 

Regards,

Bill

QuoteReplyEditDelete

 

 

2008-02-22 16:32:05     Re: Request file modification

Mike Frysinger (UNITED STATES)

Message: 51526    adding a clear func is fine, but the HRM disagrees with you as to how to clear it

 

it states: (page 11-10: PPI Status Register)

The entire register is cleared when read, so the status word must be parsed to evaluate which bits have been set.

 

which makes sense as this is how the BF533 works and the BF561 is largely based on that

QuoteReplyEditDelete

 

 

2008-02-25 09:29:32     Re: Request file modification

Bill Fassler (UNITED STATES)

Message: 51595    OH!  Gee, I think I pulled the clear function straight from the cdefBF537.h file.  We are actually using it the way I state in that first post for our camera.  We had to add it because the blackfin_cam.c uses it.

 

Bill

QuoteReplyEditDelete

 

 

2008-02-25 11:17:28     Re: Request file modification

Bill Fassler (UNITED STATES)

Message: 51597    Even though I am not experiencing any known issues with my "wrongfully" defined PPI_CLEAR_STATUS function(s), I'll get them fixed.  Thanks Mike.

Attachments

    Outcomes