Skip to content

Instantly share code, notes, and snippets.

@latsku
Created January 20, 2016 14:55
Show Gist options
  • Save latsku/8d2daef7e9276eb1a4f0 to your computer and use it in GitHub Desktop.
Save latsku/8d2daef7e9276eb1a4f0 to your computer and use it in GitHub Desktop.
RIOT-OS project Makefile additions for ENC28J60 ethernet adapter
# Configuration to enable ENC28J60 ethernet adapter.
USEMODULE += enc28j60
USEMODULE += gnrc_netdev2
CFLAGS += -DENC28J60_PARAM_SPI=SPI_0
CFLAGS += -DENC28J60_PARAM_CS="GPIO_PIN(PORT_B,6)"
CFLAGS += -DENC28J60_PARAM_INT="GPIO_PIN(PORT_C,7)"
CFLAGS += -DENC28J60_PARAM_RESET="GPIO_PIN(PORT_A,9)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment