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

Hauke Petersen notifications at github.com
Tue Jun 16 02:57:32 CEST 2015


> +    gpio_clear(dev->cs);
> +    switch_bank(dev, bank);
> +    spi_transfer_bytes(dev->spi, cmd, result, 2);
> +    gpio_set(dev->cs);
> +
> + //   DEBUG("encx24j600_reg_get8: got 0x%x from register 0x%x\n", (result[2]), reg);
> +
> +    return result[2] ;
> +}
> +#endif
> +
> +static void reg_set(encx24j600_t *dev, uint8_t reg, uint16_t value)
> +{
> +    char cmd[4] = { WCRU, reg, value, value >> 8 };
> +
> +//    DEBUG("encx24j600_reg_set: setting 0x%x to register 0x%x\n", (cmd[2] | (cmd[3] << 8)), reg);

remove

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


More information about the notifications mailing list