emacps : Example file is modified for fixing compiler warnings.
This patch fixes the compiler warnings in the xemacps_ieee1588_example.c file. Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
This commit is contained in:
parent
e6d6e901cb
commit
aa97b85c54
1 changed files with 3 additions and 3 deletions
|
@ -1488,7 +1488,7 @@ void XEmacPs_HandleRecdPTPPacket(XEmacPs_Ieee1588 *InstancePtr)
|
||||||
* Get the buffer address in which the PTP packet is
|
* Get the buffer address in which the PTP packet is
|
||||||
* stored from the BD.
|
* stored from the BD.
|
||||||
*/
|
*/
|
||||||
BufAddr = (void*)(XEmacPs_BdGetBufAddr(CurBdPtr) &
|
BufAddr = (void*)(INTPTR)(XEmacPs_BdGetBufAddr(CurBdPtr) &
|
||||||
~(XEMACPS_RXBUF_WRAP_MASK | XEMACPS_RXBUF_NEW_MASK));
|
~(XEMACPS_RXBUF_WRAP_MASK | XEMACPS_RXBUF_NEW_MASK));
|
||||||
BufLen = XEmacPs_BdGetLength(CurBdPtr);
|
BufLen = XEmacPs_BdGetLength(CurBdPtr);
|
||||||
#ifndef PEEP
|
#ifndef PEEP
|
||||||
|
@ -1501,7 +1501,7 @@ void XEmacPs_HandleRecdPTPPacket(XEmacPs_Ieee1588 *InstancePtr)
|
||||||
* acceptable. Print the wrond packet to get some
|
* acceptable. Print the wrond packet to get some
|
||||||
* idea regarding what it contains.
|
* idea regarding what it contains.
|
||||||
*/
|
*/
|
||||||
if (XEmacPs_IsRxFramePTP(BufAddr) == FALSE) {
|
if (XEmacPs_IsRxFramePTP((u8*)BufAddr) == FALSE) {
|
||||||
#ifdef DEBUG_XEMACPS_LEVEL1
|
#ifdef DEBUG_XEMACPS_LEVEL1
|
||||||
xil_printf("A WRONG Packet Received \r\n");
|
xil_printf("A WRONG Packet Received \r\n");
|
||||||
for (k = 0; k <= 100; k=k+10) {
|
for (k = 0; k <= 100; k=k+10) {
|
||||||
|
@ -1707,7 +1707,7 @@ void XEmacPs_PtpTxInterruptHandler (XEmacPs_Ieee1588 *InstancePtr)
|
||||||
NumBdsToProcess = NumBds;
|
NumBdsToProcess = NumBds;
|
||||||
CurBdPtr=BdPtr;
|
CurBdPtr=BdPtr;
|
||||||
while (NumBdsToProcess > 0) {
|
while (NumBdsToProcess > 0) {
|
||||||
BufAddr = (void*)(XEmacPs_BdGetBufAddr(CurBdPtr));
|
BufAddr = (void*)(INTPTR)(XEmacPs_BdGetBufAddr(CurBdPtr));
|
||||||
BufLen = XEmacPs_BdGetLength(CurBdPtr);
|
BufLen = XEmacPs_BdGetLength(CurBdPtr);
|
||||||
|
|
||||||
XEmacPs_PtpTxDoFurtherProcessing (InstancePtr, (u8 *)BufAddr);
|
XEmacPs_PtpTxDoFurtherProcessing (InstancePtr, (u8 *)BufAddr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue