Skip to content

LoRa: Internal include paths corrected #6587

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

Merged
merged 1 commit into from
Apr 12, 2018
Merged
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 features/lorawan/LoRaWANBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef LORAWAN_BASE_H_
#define LORAWAN_BASE_H_

#include "lorawan/system/lorawan_data_structures.h"
#include "system/lorawan_data_structures.h"
#include "events/EventQueue.h"

class LoRaWANBase {
Expand Down
2 changes: 1 addition & 1 deletion features/lorawan/LoRaWANInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* limitations under the License.
*/

#include "lorawan/LoRaWANInterface.h"
#include "LoRaWANInterface.h"

using namespace events;

Expand Down
6 changes: 3 additions & 3 deletions features/lorawan/LoRaWANInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#define LORAWANINTERFACE_H_

#include "platform/Callback.h"
#include "lorawan/LoRaWANStack.h"
#include "lorawan/LoRaRadio.h"
#include "lorawan/LoRaWANBase.h"
#include "LoRaWANStack.h"
#include "LoRaRadio.h"
#include "LoRaWANBase.h"

class LoRaWANInterface: public LoRaWANBase {

Expand Down
3 changes: 2 additions & 1 deletion features/lorawan/LoRaWANStack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ SPDX-License-Identifier: BSD-3-Clause
#include <stdlib.h>
#include "platform/Callback.h"
#include "events/EventQueue.h"
#include "lorawan/LoRaWANStack.h"

#include "LoRaWANStack.h"
#if defined(FEATURE_COMMON_PAL)
#include "mbed_trace.h"
#define TRACE_GROUP "LSTK"
Expand Down
5 changes: 3 additions & 2 deletions features/lorawan/LoRaWANStack.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@
#include "events/EventQueue.h"
#include "platform/Callback.h"
#include "platform/NonCopyable.h"
#include "lorawan/system/LoRaWANTimer.h"

#include "lorastack/mac/LoRaMac.h"
#include "lorawan/system/lorawan_data_structures.h"
#include "system/LoRaWANTimer.h"
#include "system/lorawan_data_structures.h"
#include "LoRaRadio.h"

class LoRaWANStack: private mbed::NonCopyable<LoRaWANStack> {
Expand Down
1 change: 1 addition & 0 deletions features/lorawan/lorastack/mac/LoRaMac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Copyright (c) 2017, Arm Limited and affiliates.
SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdlib.h>

#include "LoRaMac.h"
#include "LoRaMacCrypto.h"

Expand Down
13 changes: 8 additions & 5 deletions features/lorawan/lorastack/mac/LoRaMac.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@
#ifndef MBED_LORAWAN_MAC_H__
#define MBED_LORAWAN_MAC_H__

#include "lorawan/system/LoRaWANTimer.h"
#include "lorastack/phy/LoRaPHY.h"
#include "lorawan/system/lorawan_data_structures.h"
#include "LoRaMacCommand.h"
#include "events/EventQueue.h"

#include "lorastack/phy/loraphy_target.h"
#include "lorastack/phy/LoRaPHY.h"

#include "system/LoRaWANTimer.h"
#include "system/lorawan_data_structures.h"

#include "LoRaMacChannelPlan.h"
#include "loraphy_target.h"
#include "LoRaMacCommand.h"

class LoRaMac {

Expand Down
2 changes: 1 addition & 1 deletion features/lorawan/lorastack/mac/LoRaMacChannelPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Copyright (c) 2017, Arm Limited and affiliates.
SPDX-License-Identifier: BSD-3-Clause
*/

#include "lorastack/mac/LoRaMacChannelPlan.h"
#include "LoRaMacChannelPlan.h"

LoRaMacChannelPlan::LoRaMacChannelPlan() : _lora_phy(NULL)
{
Expand Down
2 changes: 1 addition & 1 deletion features/lorawan/lorastack/mac/LoRaMacChannelPlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SPDX-License-Identifier: BSD-3-Clause
#ifndef MBED_LORAWAN_LORAMACCHANNELPLAN_H_
#define MBED_LORAWAN_LORAMACCHANNELPLAN_H_

#include "lorawan/system/lorawan_data_structures.h"
#include "system/lorawan_data_structures.h"
#include "lorastack/phy/LoRaPHY.h"

class LoRaMacChannelPlan {
Expand Down
1 change: 1 addition & 0 deletions features/lorawan/lorastack/mac/LoRaMacCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Copyright (c) 2017, Arm Limited and affiliates.

SPDX-License-Identifier: BSD-3-Clause
*/

#include "LoRaMacCommand.h"
#include "LoRaMac.h"

Expand Down
4 changes: 2 additions & 2 deletions features/lorawan/lorastack/mac/LoRaMacCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#define __LORAMACCOMMAND_H__

#include <stdint.h>
#include "lorawan/system/lorawan_data_structures.h"
#include "lorawan/lorastack/phy/LoRaPHY.h"
#include "system/lorawan_data_structures.h"
#include "lorastack/phy/LoRaPHY.h"

/*!
* Maximum MAC commands buffer size
Expand Down
6 changes: 4 additions & 2 deletions features/lorawan/lorastack/mac/LoRaMacCrypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@

#include <stdlib.h>
#include <stdint.h>
#include "lorastack/mac/LoRaMacCrypto.h"
#include "lorawan/system/lorawan_data_structures.h"

#include "mbedtls/aes.h"
#include "mbedtls/cmac.h"

#include "LoRaMacCrypto.h"
#include "system/lorawan_data_structures.h"


#if defined(MBEDTLS_CMAC_C) && defined(MBEDTLS_AES_C) && defined(MBEDTLS_CIPHER_C)

/**
Expand Down
3 changes: 2 additions & 1 deletion features/lorawan/lorastack/phy/LoRaPHY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ SPDX-License-Identifier: BSD-3-Clause
#include <string.h>
#include <stdint.h>
#include <math.h>
#include "lorawan/lorastack/phy/LoRaPHY.h"

#include "LoRaPHY.h"

#define BACKOFF_DC_1_HOUR 100
#define BACKOFF_DC_10_HOURS 1000
Expand Down
7 changes: 4 additions & 3 deletions features/lorawan/lorastack/phy/LoRaPHY.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@
#ifndef MBED_OS_LORAPHY_BASE_
#define MBED_OS_LORAPHY_BASE_

#include "lorawan/LoRaRadio.h"
#include "lorawan/system/LoRaWANTimer.h"
#include "lorawan/lorastack/phy/lora_phy_ds.h"
#include "platform/NonCopyable.h"

#include "system/LoRaWANTimer.h"
#include "LoRaRadio.h"
#include "lora_phy_ds.h"

class LoRaPHY : private mbed::NonCopyable<LoRaPHY> {

public:
Expand Down
1 change: 0 additions & 1 deletion features/lorawan/lorastack/phy/LoRaPHYUS915Hybrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

#include "LoRaPHY.h"


/*!
* LoRaMac maximum number of channels
*/
Expand Down
2 changes: 1 addition & 1 deletion features/lorawan/lorastack/phy/lora_phy_ds.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#ifndef MBED_OS_LORA_PHY_DATASTRUCTURES_
#define MBED_OS_LORA_PHY_DATASTRUCTURES_

#include "lorawan/system/lorawan_data_structures.h"
#include "system/lorawan_data_structures.h"

/*!
* \brief Returns the minimum value between a and b.
Expand Down
2 changes: 1 addition & 1 deletion features/lorawan/system/LoRaWANTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Copyright (c) 2017, Arm Limited and affiliates.
SPDX-License-Identifier: BSD-3-Clause
*/

#include "lorawan/system/LoRaWANTimer.h"
#include "LoRaWANTimer.h"

LoRaWANTimeHandler::LoRaWANTimeHandler()
: _queue(NULL)
Expand Down
3 changes: 2 additions & 1 deletion features/lorawan/system/LoRaWANTimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ SPDX-License-Identifier: BSD-3-Clause
#define MBED_LORAWAN_SYS_TIMER_H__

#include <stdint.h>
#include "lorawan/system/lorawan_data_structures.h"
#include "events/EventQueue.h"

#include "lorawan_data_structures.h"

class LoRaWANTimeHandler
{
public:
Expand Down