...
This commit is contained in:
parent
04a673c60a
commit
4f5cb657d0
1 changed files with 3 additions and 3 deletions
|
@ -263,7 +263,7 @@ __inline uint8_t mmnif_read_rx_queue(uint32_t dest_ip)
|
|||
return hdr.queued;
|
||||
#else
|
||||
mm_rx_buffer_t hdr;
|
||||
memcpy(&hdr,(char*)mpb_start_address + ( dest_ip -1 ) * mpb_size,&hdr,sizeof(hdr));
|
||||
memcpy(&hdr,(char*)mpb_start_address + ( dest_ip -1 ) * mpb_size,sizeof(hdr));
|
||||
return hdr.queued;
|
||||
#endif
|
||||
};
|
||||
|
@ -282,7 +282,7 @@ __inline uint8_t mmnif_read_rx_pos(uint32_t dest_ip)
|
|||
return hdr.pos;
|
||||
#else
|
||||
mm_rx_buffer_t hdr;
|
||||
memcpy(&hdr,(char*)mpb_start_address + ( dest_ip -1 ) * mpb_size,&hdr,sizeof(hdr));
|
||||
memcpy(&hdr,(char*)mpb_start_address + ( dest_ip -1 ) * mpb_size,sizeof(hdr));
|
||||
return hdr.pos;
|
||||
#endif
|
||||
};
|
||||
|
@ -301,7 +301,7 @@ __inline uint8_t mmnif_read_rx_inv_intr(uint32_t dest_ip)
|
|||
return hdr.iv_intr;
|
||||
#else
|
||||
mm_rx_buffer_t hdr;
|
||||
memcpy(&hdr,(char*)mpb_start_address + ( dest_ip -1 ) * mpb_size,&hdr,sizeof(hdr));
|
||||
memcpy(&hdr,(char*)mpb_start_address + ( dest_ip -1 ) * mpb_size,sizeof(hdr));
|
||||
return hdr.iv_intr;
|
||||
#endif
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue