Setting Polarity for FIFO Programmable-level Flag (PF) on the FX2 (FX2 - BHA)

Question: How do I set polarity for FIFO programmable-level flag (PF)?

 

Answer:

The polarity of the "empty" and "full" flag pins defaults to active-low but may be inverted via the FIFOPINPOLAR register, for example:

FIFOPINPOLAR = 0x00; //set all slave FIFO interface pins as active low