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

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


> +    if (addr != 0xFFFF) {
> +        reg_set(dev, reg, addr);
> +    }
> +
> +    /* copy data */
> +    cmdn(dev, cmd, in, out, len);
> +}
> +
> +static int _init(dev_eth_t *encdev)
> +{
> +    encx24j600_t * dev = (encx24j600_t *) encdev;
> +
> +    DEBUG("encx24j600: starting initialization...\n");
> +
> +    /* setup IO */
> +    gpio_init_out(dev->cs, GPIO_PULLUP);

adapt to changes in GPIO driver: `gpio_init(dev->cs, GPIO_DIR_OUT, ...)`

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


More information about the notifications mailing list