Blame view

orbimote/firmware/Makefile 1 KB
ca223e024   Jean-Michel Friedt   orbimote avec sof...
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
  APPLICATION=orbimote
  
  BOARD ?= im880b
  
  # Default radio driver is Semtech SX1272 (used by the IMST iM880ab boards)
  DRIVER ?= sx1272
  
  # Default region is Europe and default band is 868MHz
  REGION ?= EU868
  
  USEMODULE += fmt
  USEMODULE += xtimer
  # USEMODULE += mma8x5x
  # USEMODULE += mag3110
  USEMODULE += mpl3115a2
  USEMODULE += $(DRIVER)
  
  USEPKG += semtech-loramac
  USEMODULE += semtech_loramac_rx
  
  # SECRET should be changed and kept secret
  SECRET ?= cafebabe02000001cafebabe02ffffff
  
  DEVEUI ?= cafebabe02000001
  APPEUI ?= cafebabe02ffffff
  APPKEY ?= cafebabe02000001cafebabe02ffffff
  
  FEATURES_REQUIRED += periph_rtc
  
  USEMODULE += hashes
  
  USEPKG += cayenne-lpp
  
  DEVELHELP ?= 1
  
  RIOTBASE ?= ${RIOT_BASE}
  # RIOTBASE ?= ~/github/RIOT-OS/RIOT
  
  CFLAGS += -DREGION_$(REGION)
  CFLAGS += -DLORAMAC_ACTIVE_REGION=LORAMAC_REGION_$(REGION)
  
  CFLAGS += -DFORGE_DEVEUI_APPEUI_APPKEY -DSECRET=\"$(SECRET)\"
  # CFLAGS += -DDEVEUI=\"$(DEVEUI)\" -DDEVEUI=\"$(DEVEUI)\" -DAPPEUI=\"$(APPEUI)\" -DAPPKEY=\"$(APPKEY)\"
  
  include $(RIOTBASE)/Makefile.include