Add compilation flags to rf_configuration

Add flags to allow compilation without nanostack.
pull/11023/head
Arto Kinnunen 2019-05-27 17:06:59 +03:00 committed by Evelyne Donnaes
parent 04105c788a
commit 0809757f82
1 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI && DEVICE_INTERRUPTIN && defined(MBED_CONF_RTOS_PRESENT)
#include "nanostack/platform/arm_hal_phy.h" #include "nanostack/platform/arm_hal_phy.h"
#include "rf_configuration.h" #include "rf_configuration.h"
@ -167,3 +170,6 @@ uint32_t rf_conf_calculate_deviation(phy_modulation_index_e modulation_index, ui
} }
return deviation; return deviation;
} }
#endif // MBED_CONF_NANOSTACK_CONFIGURATION && DEVICE_SPI && DEVICE_INTERRUPTIN && defined(MBED_CONF_RTOS_PRESENT)