-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (44 loc) · 1.67 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Set the name of your application:
APPLICATION = ho_rubbish
# If no BOARD is found in the environment, use this default:
BOARD ?= bluepill
DEFAULT_PERIOD_SENDING ?= 3600
DEFAULT_RESOLUTION ?= 0
# Lorawan config
-include lorawan.credentials
LORA_REGION ?= EU868
# defines
CFLAGS += -DDEFAULT_PERIOD_SENDING=$(DEFAULT_PERIOD_SENDING)
CFLAGS += -DDEFAULT_RESOLUTION=$(DEFAULT_RESOLUTION)
CFLAGS += -DDS18_PARAM_PIN=$(DS18_PARAM_PIN)
CFLAGS += -DDEVEUI=\"$(DEVEUI)\" -DAPPEUI=\"$(APPEUI)\" -DAPPKEY=\"$(APPKEY)\"
CFLAGS += -DDISABLE_LORAMAC_DUTYCYCLE
# CFLAGS += "-DSTDIO_UART_DEV=UART_DEV(0)" //TODO
CFLAGS += "-DSX127X_PARAM_SPI=(SPI_DEV(1))"
CFLAGS += "-DSX127X_PARAM_SPI_NSS=GPIO_PIN(PORT_B, 12)"
CFLAGS += "-DSX127X_PARAM_RESET=GPIO_PIN(PORT_B, 8)"
CFLAGS += "-DSX127X_PARAM_DIO0=GPIO_PIN(PORT_B, 7)"
CFLAGS += "-DSX127X_PARAM_DIO1=GPIO_PIN(PORT_B, 6)"
CFLAGS += "-DSX127X_PARAM_DIO2=GPIO_PIN(PORT_B, 5)"
CFLAGS += "-DSX127X_PARAM_DIO3=GPIO_UNDEF"
CFLAGS += "-DSX127X_PARAM_PASELECT=(SX127X_PA_BOOST)"
# Uncomment this to enable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:
DEVELHELP = 1
# Change this to 0 to show compiler invocation lines by default:
QUIET ?= 1
# Modules to include:
USEPKG += semtech-loramac
USEMODULE += fmt
USEMODULE += semtech_loramac_rx
USEMODULE += stdio_null
USEMODULE += sx1276
FEATURES_REQUIRED += periph_adc
FEATURES_REQUIRED += periph_gpio
FEATURES_REQUIRED += periph_rtc
# Specify custom dependencies for your application here
APPDEPS = scaling.h
# This has to be the absolute path to the RIOT base directory:
RIOTBASE ?= $(CURDIR)/../RIOT
include $(RIOTBASE)/Makefile.include