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

Hauke Petersen notifications at github.com
Tue Jun 16 02:58:47 CEST 2015


> +
> +//    DEBUG("encx24j600_reg_set: setting mask 0x%x to register 0x%x\n", (cmd[2] | (cmd[3] << 8)), reg);
> +
> +    enc_spi_transfer(dev, cmd, NULL, 4);
> +}
> +
> +static void reg_clear_bits(encx24j600_t *dev, uint8_t reg, uint16_t mask)
> +{
> +    char cmd[4] = { BFCU, reg, mask, mask >> 8 };
> +
> +//    DEBUG("encx24j600_reg_set: clearing mask 0x%x to register 0x%x\n", (cmd[2] | (cmd[3] << 8)), reg);
> +
> +    enc_spi_transfer(dev, cmd, NULL, 4);
> +}
> +
> +#if 0 /* unused */

then remove it?!

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


More information about the notifications mailing list