S2-LP: Needs Nanostack configuration and device SPI

pull/8585/head
Jarkko Paso 2018-10-31 14:39:47 +02:00
parent 0f08b35510
commit 425e7a96e6
2 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include <string.h> #include <string.h>
#if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI
#include "platform/arm_hal_interrupt.h" #include "platform/arm_hal_interrupt.h"
#include "nanostack/platform/arm_hal_phy.h" #include "nanostack/platform/arm_hal_phy.h"
#include "ns_types.h" #include "ns_types.h"
@ -1372,3 +1373,4 @@ NanostackRfPhy &NanostackRfPhy::get_default_instance()
return rf_phy; return rf_phy;
} }
#endif // MBED_CONF_S2LP_PROVIDE_DEFAULT #endif // MBED_CONF_S2LP_PROVIDE_DEFAULT
#endif // MBED_CONF_NANOSTACK_CONFIGURATION && DEVICE_SPI

View File

@ -18,6 +18,7 @@
#define NANOSTACK_PHY_S2LP_H_ #define NANOSTACK_PHY_S2LP_H_
#include "mbed.h" #include "mbed.h"
#if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI
#include "NanostackRfPhy.h" #include "NanostackRfPhy.h"
// Uncomment to use testing gpios attached to TX/RX processes // Uncomment to use testing gpios attached to TX/RX processes
@ -104,5 +105,5 @@ private:
const PinName _spi_gpio2; const PinName _spi_gpio2;
const PinName _spi_gpio3; const PinName _spi_gpio3;
}; };
#endif /* MBED_CONF_NANOSTACK_CONFIGURATION && DEVICE_SPI */
#endif /* NANOSTACK_PHY_S2LP_H_ */ #endif /* NANOSTACK_PHY_S2LP_H_ */