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

Hauke Petersen notifications at github.com
Tue Jun 16 03:02:30 CEST 2015


> +}
> +
> +static void phy_reg_set(encx24j600_t *dev, uint8_t reg, uint16_t value) {
> +    reg_set(dev, MIREGADR, reg | (1<<8));
> +    reg_set(dev, MIWR, value);
> +}
> +
> +static void cmd(encx24j600_t *dev, char cmd) {
> +    gpio_clear(dev->cs);
> +    spi_transfer_byte(dev->spi, cmd, NULL);
> +    gpio_set(dev->cs);
> +}
> +
> +static void cmdn(encx24j600_t *dev, uint8_t cmd, char *out, char *in, int len) {
> +    gpio_clear(dev->cs);
> +    spi_transfer_byte(dev->spi, cmd, NULL);

lock bus...

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


More information about the notifications mailing list