mborgerson
Well-known member
In imxrt.h we have:
#define PXP_PS_CTRL_WB_SWAP ((uint32_t)(1<<5))
This agrees with the rev. 2 reference manual page 1939 which shows the WB_SWAP in PXP_PS_CTRL as bit 5.
However, in recent testing I have verified that in order to swap bytes, you need to set bit 6.
Revision 3 of the i.MXRT1062 Reference Manual corrects the error and properly defines the swap bit as bit 6. This manual just came out back in July of this year. I wonder what other hidden gems it is hiding amongst its 3521 pages?
I didn't notice this until I started working with a camera that required swapping bytes for proper YUV422 input.
#define PXP_PS_CTRL_WB_SWAP ((uint32_t)(1<<5))
This agrees with the rev. 2 reference manual page 1939 which shows the WB_SWAP in PXP_PS_CTRL as bit 5.
However, in recent testing I have verified that in order to swap bytes, you need to set bit 6.
Revision 3 of the i.MXRT1062 Reference Manual corrects the error and properly defines the swap bit as bit 6. This manual just came out back in July of this year. I wonder what other hidden gems it is hiding amongst its 3521 pages?
I didn't notice this until I started working with a camera that required swapping bytes for proper YUV422 input.