git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1187 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
38c94f3570
commit
7f4861c9ea
|
@ -269,7 +269,7 @@ void mac_lld_release_transmit_descriptor(MACDriver *macp,
|
|||
*/
|
||||
uint8_t *mac_lld_get_transmit_buffer(MACTransmitDescriptor *tdp) {
|
||||
|
||||
return NULL;
|
||||
return (uint8_t *)(tdp->w1 & W1_T_ADDRESS_MASK);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -307,7 +307,7 @@ void mac_lld_release_receive_descriptor(MACDriver *macp,
|
|||
*/
|
||||
uint8_t *mac_lld_get_receive_buffer(MACReceiveDescriptor *rdp) {
|
||||
|
||||
return NULL;
|
||||
return (uint8_t *)(rdp->w1 & W1_R_ADDRESS_MASK);
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
|
|
@ -76,6 +76,8 @@
|
|||
#define W2_R_MULTICAST_MATCH 0x40000000
|
||||
#define W2_R_BROADCAST_DETECTED 0x80000000
|
||||
|
||||
#define W1_T_ADDRESS_MASK 0xFFFFFFFF
|
||||
|
||||
#define W2_T_LENGTH_MASK 0x000007FF
|
||||
#define W2_T_LOCKED 0x00000800 /* Not an EMAC flag, used by the driver */
|
||||
#define W2_T_RFU1 0x00003000
|
||||
|
|
Loading…
Reference in New Issue