Skip to content

Commit 425e7a9

Browse files
author
Jarkko Paso
committed
S2-LP: Needs Nanostack configuration and device SPI
1 parent 0f08b35 commit 425e7a9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

components/802.15.4_RF/stm-s2lp-rf-driver/source/NanostackRfPhys2lp.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616
#include <string.h>
17+
#if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI
1718
#include "platform/arm_hal_interrupt.h"
1819
#include "nanostack/platform/arm_hal_phy.h"
1920
#include "ns_types.h"
@@ -1372,3 +1373,4 @@ NanostackRfPhy &NanostackRfPhy::get_default_instance()
13721373
return rf_phy;
13731374
}
13741375
#endif // MBED_CONF_S2LP_PROVIDE_DEFAULT
1376+
#endif // MBED_CONF_NANOSTACK_CONFIGURATION && DEVICE_SPI

components/802.15.4_RF/stm-s2lp-rf-driver/stm-s2lp-rf-driver/NanostackRfPhys2lp.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define NANOSTACK_PHY_S2LP_H_
1919

2020
#include "mbed.h"
21+
#if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI
2122
#include "NanostackRfPhy.h"
2223

2324
// Uncomment to use testing gpios attached to TX/RX processes
@@ -104,5 +105,5 @@ class NanostackRfPhys2lp : public NanostackRfPhy {
104105
const PinName _spi_gpio2;
105106
const PinName _spi_gpio3;
106107
};
107-
108+
#endif /* MBED_CONF_NANOSTACK_CONFIGURATION && DEVICE_SPI */
108109
#endif /* NANOSTACK_PHY_S2LP_H_ */

0 commit comments

Comments
 (0)