Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
LoRaWAN benchmark
RIOT - IM880B
Commits
0868d72c
Commit
0868d72c
authored
Apr 16, 2019
by
Guillaume Gonnet
Browse files
Fix all Makefiles.
parent
b185b2ec
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
51 additions
and
16 deletions
+51
-16
.gitignore
.gitignore
+2
-0
Makefile
Makefile
+13
-1
src/Makefile
src/Makefile
+16
-6
src/app/Makefile
src/app/Makefile
+2
-0
src/app/main.c
src/app/main.c
+11
-3
src/loramac/Makefile
src/loramac/Makefile
+2
-0
src/loramac/crypto/Makefile
src/loramac/crypto/Makefile
+2
-0
src/loramac/include/loramac-timer.h
src/loramac/include/loramac-timer.h
+0
-2
src/loramac/mac/LoRaMac.h
src/loramac/mac/LoRaMac.h
+1
-1
src/loramac/mac/Makefile
src/loramac/mac/Makefile
+2
-0
src/loramac/region/Makefile
src/loramac/region/Makefile
+0
-3
No files found.
.gitignore
View file @
0868d72c
# Ignore "bin" directory.
/bin/
\ No newline at end of file
Makefile
View file @
0868d72c
...
...
@@ -7,7 +7,7 @@
APPLICATION
=
cubsat
# Use IM880B board as default (that has a Semtech SX127
6
).
# Use IM880B board as default (that has a Semtech SX127
2
).
BOARD
?=
im880b
DRIVER
?=
sx1272
...
...
@@ -21,3 +21,15 @@ DEVELHELP ?= 1
# Change this to 0 show compiler invocation lines by default.
QUIET
?=
1
# All modules defined in this application.
USEMODULE
+=
cubsat-app
USEMODULE
+=
loramac-mac
USEMODULE
+=
loramac-region
USEMODULE
+=
loramac-crypto
# Source directory is "src".
DIRS
+=
src
include
$(RIOTBASE)/Makefile.include
src/Makefile
View file @
0868d72c
...
...
@@ -4,13 +4,23 @@
# Copyright (C) 2019, ENSIMAG students
# This project is under the MIT license
MODULE
:=
midway-src
# Directory containing LoRaMAC-node.
LORAMAC_DIR
:=
$(CURDIR)
/loramac
export
LORAMAC_DIR
:=
$(CURDIR)
/loramac
# Include folders for LoRaMAC-node.
LORAMAC_INC
:=
\
-I
$(LORAMACDIR)
/include
\
-I
$(LORAMACDIR)
/crypto
\
-I
$(LORAMACDIR)
/region
\
-I
$(LORAMACDIR)
/mac
export
LORAMAC_INC
:=
\
-I
$(LORAMAC_DIR)
/include
\
-I
$(LORAMAC_DIR)
/crypto
\
-I
$(LORAMAC_DIR)
/region
\
-I
$(LORAMAC_DIR)
/mac
# Add source directories.
DIRS
+=
app
DIRS
+=
loramac
# DIRS += $(CURDIR)/lorariot
include
$(RIOTBASE)/Makefile.base
src/app/Makefile
View file @
0868d72c
...
...
@@ -4,4 +4,6 @@
# Copyright (C) 2019, ENSIMAG students
# This project is under the MIT license
MODULE
:=
cubsat-app
include
$(RIOTBASE)/Makefile.base
src/app/main.c
View file @
0868d72c
/*
Cubsat benchmark application.
Copyright (C) 2019, ENSIMAG students
This project is under the MIT license
This file is based on "semtech-loramac" module from RIOT OS, under the
LGPLv2.1 license.
*/
*/
\ No newline at end of file
#include <stdio.h>
int
main
(
void
)
{
puts
(
"Hello !
\n
"
);
}
src/loramac/Makefile
View file @
0868d72c
...
...
@@ -4,6 +4,8 @@
# Copyright (C) 2019, ENSIMAG students
# This project is under the MIT license
MODULE
:=
midway-src
DIRS
+=
mac
DIRS
+=
region
DIRS
+=
crypto
...
...
src/loramac/crypto/Makefile
View file @
0868d72c
...
...
@@ -4,4 +4,6 @@
# Copyright (C) 2019, ENSIMAG students
# This project is under the MIT license
MODULE
:=
loramac-crypto
include
$(RIOTBASE)/Makefile.base
src/loramac/include/loramac-timer.h
View file @
0868d72c
...
...
@@ -29,8 +29,6 @@ extern "C" {
#include "xtimer.h"
#include "msg.h"
#include "semtech_loramac.h"
/**
* @brief Timer object description
*/
...
...
src/loramac/mac/LoRaMac.h
View file @
0868d72c
...
...
@@ -1995,7 +1995,7 @@ LoRaMacStatus_t LoRaMacMcpsRequest( McpsReq_t *mcpsRequest );
* Automatically add the Region.h file at the end of LoRaMac.h file.
* This is required because Region.h uses definitions from LoRaMac.h
*/
#include "
region/
Region.h"
#include "Region.h"
/*! \} defgroup LORAMAC */
...
...
src/loramac/mac/Makefile
View file @
0868d72c
...
...
@@ -4,6 +4,8 @@
# Copyright (C) 2019, ENSIMAG students
# This project is under the MIT license
MODULE
:=
loramac-mac
CFLAGS
+=
-Wno-sign-compare
include
$(RIOTBASE)/Makefile.base
src/loramac/region/Makefile
View file @
0868d72c
...
...
@@ -8,7 +8,4 @@ MODULE := loramac-region
CFLAGS
+=
-Wno-missing-field-initializers
-Wno-unused-parameter
-Wno-sign-compare
INCLUDES
+=
-I
$(LORAMACDIR)
/mac/boards
\
-I
$(LORAMACDIR)
/mac/radio
include
$(RIOTBASE)/Makefile.base
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment