[riot-notifications] [RIOT] drivers: add driver for encx24j600 ethernet chips (#2800)

Hauke Petersen notifications at github.com
Tue Jun 16 03:12:04 CEST 2015


> +{
> +    encx24j600_t * dev = (encx24j600_t *) encdev;
> +    encx24j600_frame_hdr_t hdr;
> +
> +    lock(dev);
> +
> +    /* read frame header */
> +    sram_op(dev, RRXDATA, dev->rx_next_ptr, (char*)&hdr, sizeof(hdr));
> +
> +    /* read packet */
> +    sram_op(dev, RRXDATA, 0xFFFF, buf, hdr.frame_len);
> +
> +    /* decrement available packet count */
> +    cmd(dev, SETPKTDEC);
> +
> +//    DEBUG("encx24j600: Received packet. frame_len=%u next=0x%x, newnext=0x%x ERXTAIL=0x%x\n", (unsigned int)hdr.frame_len, (unsigned int) dev->rx_next_ptr, (unsigned int)hdr.rx_next_ptr, (unsigned int)reg_get(dev, ERXTAIL));

remove!?

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/2800/files#r32483595
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150615/6faa2e3f/attachment.html>


More information about the notifications mailing list