Skip to content

Commit e1a63f9

Browse files
author
Cruz Monrreal
authored
Merge pull request #6587 from AnttiKauppila/include_fix
LoRa: Internal include paths corrected
2 parents 7f67196 + 67157fc commit e1a63f9

18 files changed

+38
-27
lines changed

features/lorawan/LoRaWANBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#ifndef LORAWAN_BASE_H_
2020
#define LORAWAN_BASE_H_
2121

22-
#include "lorawan/system/lorawan_data_structures.h"
22+
#include "system/lorawan_data_structures.h"
2323
#include "events/EventQueue.h"
2424

2525
class LoRaWANBase {

features/lorawan/LoRaWANInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* limitations under the License.
2020
*/
2121

22-
#include "lorawan/LoRaWANInterface.h"
22+
#include "LoRaWANInterface.h"
2323

2424
using namespace events;
2525

features/lorawan/LoRaWANInterface.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
#define LORAWANINTERFACE_H_
2020

2121
#include "platform/Callback.h"
22-
#include "lorawan/LoRaWANStack.h"
23-
#include "lorawan/LoRaRadio.h"
24-
#include "lorawan/LoRaWANBase.h"
22+
#include "LoRaWANStack.h"
23+
#include "LoRaRadio.h"
24+
#include "LoRaWANBase.h"
2525

2626
class LoRaWANInterface: public LoRaWANBase {
2727

features/lorawan/LoRaWANStack.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ SPDX-License-Identifier: BSD-3-Clause
2727
#include <stdlib.h>
2828
#include "platform/Callback.h"
2929
#include "events/EventQueue.h"
30-
#include "lorawan/LoRaWANStack.h"
30+
31+
#include "LoRaWANStack.h"
3132
#if defined(FEATURE_COMMON_PAL)
3233
#include "mbed_trace.h"
3334
#define TRACE_GROUP "LSTK"

features/lorawan/LoRaWANStack.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@
4444
#include "events/EventQueue.h"
4545
#include "platform/Callback.h"
4646
#include "platform/NonCopyable.h"
47-
#include "lorawan/system/LoRaWANTimer.h"
47+
4848
#include "lorastack/mac/LoRaMac.h"
49-
#include "lorawan/system/lorawan_data_structures.h"
49+
#include "system/LoRaWANTimer.h"
50+
#include "system/lorawan_data_structures.h"
5051
#include "LoRaRadio.h"
5152

5253
class LoRaWANStack: private mbed::NonCopyable<LoRaWANStack> {

features/lorawan/lorastack/mac/LoRaMac.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Copyright (c) 2017, Arm Limited and affiliates.
2222
SPDX-License-Identifier: BSD-3-Clause
2323
*/
2424
#include <stdlib.h>
25+
2526
#include "LoRaMac.h"
2627
#include "LoRaMacCrypto.h"
2728

features/lorawan/lorastack/mac/LoRaMac.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,16 @@
4040
#ifndef MBED_LORAWAN_MAC_H__
4141
#define MBED_LORAWAN_MAC_H__
4242

43-
#include "lorawan/system/LoRaWANTimer.h"
44-
#include "lorastack/phy/LoRaPHY.h"
45-
#include "lorawan/system/lorawan_data_structures.h"
46-
#include "LoRaMacCommand.h"
4743
#include "events/EventQueue.h"
44+
45+
#include "lorastack/phy/loraphy_target.h"
46+
#include "lorastack/phy/LoRaPHY.h"
47+
48+
#include "system/LoRaWANTimer.h"
49+
#include "system/lorawan_data_structures.h"
50+
4851
#include "LoRaMacChannelPlan.h"
49-
#include "loraphy_target.h"
52+
#include "LoRaMacCommand.h"
5053

5154
class LoRaMac {
5255

features/lorawan/lorastack/mac/LoRaMacChannelPlan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Copyright (c) 2017, Arm Limited and affiliates.
2323
SPDX-License-Identifier: BSD-3-Clause
2424
*/
2525

26-
#include "lorastack/mac/LoRaMacChannelPlan.h"
26+
#include "LoRaMacChannelPlan.h"
2727

2828
LoRaMacChannelPlan::LoRaMacChannelPlan() : _lora_phy(NULL)
2929
{

features/lorawan/lorastack/mac/LoRaMacChannelPlan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ SPDX-License-Identifier: BSD-3-Clause
2828
#ifndef MBED_LORAWAN_LORAMACCHANNELPLAN_H_
2929
#define MBED_LORAWAN_LORAMACCHANNELPLAN_H_
3030

31-
#include "lorawan/system/lorawan_data_structures.h"
31+
#include "system/lorawan_data_structures.h"
3232
#include "lorastack/phy/LoRaPHY.h"
3333

3434
class LoRaMacChannelPlan {

features/lorawan/lorastack/mac/LoRaMacCommand.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Copyright (c) 2017, Arm Limited and affiliates.
2121
2222
SPDX-License-Identifier: BSD-3-Clause
2323
*/
24+
2425
#include "LoRaMacCommand.h"
2526
#include "LoRaMac.h"
2627

features/lorawan/lorastack/mac/LoRaMacCommand.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
#define __LORAMACCOMMAND_H__
4242

4343
#include <stdint.h>
44-
#include "lorawan/system/lorawan_data_structures.h"
45-
#include "lorawan/lorastack/phy/LoRaPHY.h"
44+
#include "system/lorawan_data_structures.h"
45+
#include "lorastack/phy/LoRaPHY.h"
4646

4747
/*!
4848
* Maximum MAC commands buffer size

features/lorawan/lorastack/mac/LoRaMacCrypto.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@
2525

2626
#include <stdlib.h>
2727
#include <stdint.h>
28-
#include "lorastack/mac/LoRaMacCrypto.h"
29-
#include "lorawan/system/lorawan_data_structures.h"
3028

3129
#include "mbedtls/aes.h"
3230
#include "mbedtls/cmac.h"
3331

32+
#include "LoRaMacCrypto.h"
33+
#include "system/lorawan_data_structures.h"
34+
35+
3436
#if defined(MBEDTLS_CMAC_C) && defined(MBEDTLS_AES_C) && defined(MBEDTLS_CIPHER_C)
3537

3638
/**

features/lorawan/lorastack/phy/LoRaPHY.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ SPDX-License-Identifier: BSD-3-Clause
2626
#include <string.h>
2727
#include <stdint.h>
2828
#include <math.h>
29-
#include "lorawan/lorastack/phy/LoRaPHY.h"
29+
30+
#include "LoRaPHY.h"
3031

3132
#define BACKOFF_DC_1_HOUR 100
3233
#define BACKOFF_DC_10_HOURS 1000

features/lorawan/lorastack/phy/LoRaPHY.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@
3434
#ifndef MBED_OS_LORAPHY_BASE_
3535
#define MBED_OS_LORAPHY_BASE_
3636

37-
#include "lorawan/LoRaRadio.h"
38-
#include "lorawan/system/LoRaWANTimer.h"
39-
#include "lorawan/lorastack/phy/lora_phy_ds.h"
4037
#include "platform/NonCopyable.h"
4138

39+
#include "system/LoRaWANTimer.h"
40+
#include "LoRaRadio.h"
41+
#include "lora_phy_ds.h"
42+
4243
class LoRaPHY : private mbed::NonCopyable<LoRaPHY> {
4344

4445
public:

features/lorawan/lorastack/phy/LoRaPHYUS915Hybrid.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535
#include "LoRaPHY.h"
3636

37-
3837
/*!
3938
* LoRaMac maximum number of channels
4039
*/

features/lorawan/lorastack/phy/lora_phy_ds.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#ifndef MBED_OS_LORA_PHY_DATASTRUCTURES_
3232
#define MBED_OS_LORA_PHY_DATASTRUCTURES_
3333

34-
#include "lorawan/system/lorawan_data_structures.h"
34+
#include "system/lorawan_data_structures.h"
3535

3636
/*!
3737
* \brief Returns the minimum value between a and b.

features/lorawan/system/LoRaWANTimer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Copyright (c) 2017, Arm Limited and affiliates.
1818
SPDX-License-Identifier: BSD-3-Clause
1919
*/
2020

21-
#include "lorawan/system/LoRaWANTimer.h"
21+
#include "LoRaWANTimer.h"
2222

2323
LoRaWANTimeHandler::LoRaWANTimeHandler()
2424
: _queue(NULL)

features/lorawan/system/LoRaWANTimer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ SPDX-License-Identifier: BSD-3-Clause
2222
#define MBED_LORAWAN_SYS_TIMER_H__
2323

2424
#include <stdint.h>
25-
#include "lorawan/system/lorawan_data_structures.h"
2625
#include "events/EventQueue.h"
2726

27+
#include "lorawan_data_structures.h"
28+
2829
class LoRaWANTimeHandler
2930
{
3031
public:

0 commit comments

Comments
 (0)