Exemplo n.º 1
0
//-----------------------------------------------------------------------------
/// Send to EMAC device
//-----------------------------------------------------------------------------
void phy_dev_send(NewDataEvent *e)
{
    unsigned char emac_rc;

    emac_rc = EMAC_Send( (void*)e->buf, e->len, (EMAC_TxCallback)0);
    if (emac_rc != EMAC_TX_OK) {

        TRACE_ERROR("E: Send, rc 0x%x\n\r", emac_rc);
    }
}
Exemplo n.º 2
0
//-----------------------------------------------------------------------------
/// Send to EMAC device
//-----------------------------------------------------------------------------
void network_send(void)
{
    unsigned char emac_rc;

    emac_rc = EMAC_Send( (void*)uip_buf, uip_len, (EMAC_TxCallback)0);
    if (emac_rc != EMAC_TX_OK) {

        TRACE_ERROR("E: Send, rc 0x%x\n\r", emac_rc);
    }

}