UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
171 Views
Registered: ‎08-16-2017

Potential bug in dp159.c mipi example?

I am not sure if this was reported, but browsing through the example of MIPI subsytem RX

https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/mipicsiss/examples/xmipi_ref_design

The calls to the AXI I2C standalone drivers in file dp159.c seem to always use (u8 *) &buf as address to the buffer while it should be &buf[0] without the need for explicit recasting to u8*.

The former is the address of the pointer to the array, while the API expect the pointer to the array.

 

Is this correct?

0 Kudos