Skip to content

Commit

Permalink
xxvethernet: Fix intr_mcdma example compilation on microblaze platform
Browse files Browse the repository at this point in the history
Include sleep.h on microblaze platform. It fixes implicit declaration
of function 'usleep' and 'Xil_poll_timeout' and also addresses below
compilation error.

../src/xxxvethernet_example_util.c:379:25: error:
'XXxvEthernet_GetUsxgmiiAnSts' undeclared (first use in this function);
did you mean 'XXxvEthernet_GetOptions'?
   to = Xil_poll_timeout(XXxvEthernet_GetUsxgmiiAnSts,
   XxvEthernetInstancePtr,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                         XXxvEthernet_GetOptions

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>

Acked-for-series: Harini Katakam <harini.katakam@xilinx.com>
  • Loading branch information
radheyxilinx authored and Siva Addepalli committed Jun 25, 2020
1 parent e9e556f commit 73cea98
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* ----- ---- -------- -------------------------------------------------------
* 1.0 hk 06/16/17 First release
* hk 02/15/18 Add support for USXGMII
* 1.5 rsp 06/08/20 Fix Xil_poll_timeout compilation error on microblaze.
*
* </pre>
*
Expand All @@ -26,7 +27,7 @@
/***************************** Include Files *********************************/

#include "xxxvethernet_example.h"
#if !defined (__MICROBLAZE__) && !defined(__PPC__)
#if !defined(__PPC__)
#include "sleep.h"
#endif

Expand Down

0 comments on commit 73cea98

Please sign in to comment.