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

Allow #define configuration of SPI parameters #164

Open
wants to merge 2 commits into
base: master
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
2 changes: 1 addition & 1 deletion libloragw/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
AR := $(CROSS_COMPILE)ar

CFLAGS := -O2 -Wall -Wextra -std=c99 -Iinc -I.
override CFLAGS += -O2 -Wall -Wextra -std=c99 -Iinc -I.

OBJDIR = obj
INCLUDES = $(wildcard inc/*.h)
Expand Down
4 changes: 4 additions & 0 deletions libloragw/src/loragw_spi.native.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ Maintainer: Sylvain Miermont

#define READ_ACCESS 0x00
#define WRITE_ACCESS 0x80
#ifndef SPI_SPEED
#define SPI_SPEED 8000000
#endif
#ifndef SPI_DEV_PATH
#define SPI_DEV_PATH "/dev/spidev0.0"
#endif
//#define SPI_DEV_PATH "/dev/spidev32766.0"

/* -------------------------------------------------------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion util_lbt_test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ include $(LGW_PATH)/library.cfg
CC := $(CROSS_COMPILE)gcc
AR := $(CROSS_COMPILE)ar

CFLAGS=-O2 -Wall -Wextra -std=c99 -Iinc -I.
override CFLAGS += -O2 -Wall -Wextra -std=c99 -Iinc -I.

OBJDIR = obj

Expand Down
2 changes: 1 addition & 1 deletion util_pkt_logger/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ include $(LGW_PATH)/library.cfg
CC := $(CROSS_COMPILE)gcc
AR := $(CROSS_COMPILE)ar

CFLAGS=-O2 -Wall -Wextra -std=c99 -Iinc -I.
override CFLAGS += -O2 -Wall -Wextra -std=c99 -Iinc -I.

OBJDIR = obj

Expand Down
2 changes: 1 addition & 1 deletion util_spectral_scan/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ include $(LGW_PATH)/library.cfg

CC = $(CROSS_COMPILE)gcc
AR = $(CROSS_COMPILE)ar
CFLAGS = -O2 -Wall -Wextra -std=c99 -I inc
override CFLAGS += -O2 -Wall -Wextra -std=c99 -I inc

OBJDIR = obj
INCLUDES = $(wildcard inc/*.h)
Expand Down
2 changes: 1 addition & 1 deletion util_spi_stress/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include $(LGW_PATH)/library.cfg
CC := $(CROSS_COMPILE)gcc
AR := $(CROSS_COMPILE)ar

CFLAGS=-O2 -Wall -Wextra -std=c99 -Iinc -I.
override CFLAGS += -O2 -Wall -Wextra -std=c99 -Iinc -I.

OBJDIR = obj

Expand Down
2 changes: 1 addition & 1 deletion util_tx_continuous/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include $(LGW_PATH)/library.cfg
CC := $(CROSS_COMPILE)gcc
AR := $(CROSS_COMPILE)ar

CFLAGS=-O2 -Wall -Wextra -std=c99 -Iinc -I.
override CFLAGS += -O2 -Wall -Wextra -std=c99 -Iinc -I.

OBJDIR = obj

Expand Down
2 changes: 1 addition & 1 deletion util_tx_test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include $(LGW_PATH)/library.cfg
CC := $(CROSS_COMPILE)gcc
AR := $(CROSS_COMPILE)ar

CFLAGS=-O2 -Wall -Wextra -std=c99 -Iinc -I.
override CFLAGS += -O2 -Wall -Wextra -std=c99 -Iinc -I.

OBJDIR = obj

Expand Down