Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6lbr on Sensortag #284

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions examples/6lbr/platform/srf06-cc26xx/Makefile.srf06-cc26xx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ SMALL=1
#Currently only gpio is supported on CC26xx/CC13xx
CC26XX_ENC28J60_ARCH?=gpio

#Configure ENC28J60 Chip Select (CS) pin for Sensortag or Launchpad
#For Lauchpad it is IOID_14, for Sensortag it is IOID_20
ifeq ($(BOARD),sensortag/cc2650)
CFLAGS += -DBOARD_SENSORTAG
else
CFLAGS += -DBOARD_LAUNCHPAD
endif

#Define the location of the NVM configuration : int, ext
#int is the embedded code flash
#ext is the external flash, only present on Sensortag and Launchpad
Expand Down
4 changes: 4 additions & 0 deletions examples/6lbr/platform/srf06-cc26xx/enc28j60-arch-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@

#undef SPI_CS_PORT
#ifndef CC26XX_ENC28J60_CONF_CS_PORT
#ifdef BOARD_SENSORTAG
#define SPI_CS_PORT BOARD_IOID_DEVPACK_CS
#else
#define SPI_CS_PORT IOID_14
#endif
#else
#define SPI_CS_PORT CC26XX_ENC28J60_CONF_CS_PORT
#endif
Expand Down