File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
components/802.15.4_RF/stm-s2lp-rf-driver Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
#include < string.h>
17
+ #if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI
17
18
#include " platform/arm_hal_interrupt.h"
18
19
#include " nanostack/platform/arm_hal_phy.h"
19
20
#include " ns_types.h"
@@ -1372,3 +1373,4 @@ NanostackRfPhy &NanostackRfPhy::get_default_instance()
1372
1373
return rf_phy;
1373
1374
}
1374
1375
#endif // MBED_CONF_S2LP_PROVIDE_DEFAULT
1376
+ #endif // MBED_CONF_NANOSTACK_CONFIGURATION && DEVICE_SPI
Original file line number Diff line number Diff line change 18
18
#define NANOSTACK_PHY_S2LP_H_
19
19
20
20
#include " mbed.h"
21
+ #if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI
21
22
#include " NanostackRfPhy.h"
22
23
23
24
// Uncomment to use testing gpios attached to TX/RX processes
@@ -104,5 +105,5 @@ class NanostackRfPhys2lp : public NanostackRfPhy {
104
105
const PinName _spi_gpio2;
105
106
const PinName _spi_gpio3;
106
107
};
107
-
108
+ # endif /* MBED_CONF_NANOSTACK_CONFIGURATION && DEVICE_SPI */
108
109
#endif /* NANOSTACK_PHY_S2LP_H_ */
You can’t perform that action at this time.
0 commit comments