Merge pull request #10680 from artokin/allow_compilation_withoout_nanostack

Add compilation flags to rf_configuration
pull/10739/head
Martin Kojtal 2019-05-31 12:34:37 +01:00 committed by GitHub
commit 34b4564371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
* 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 "rf_configuration.h"
@ -167,3 +170,6 @@ uint32_t rf_conf_calculate_deviation(phy_modulation_index_e modulation_index, ui
}
return deviation;
}
#endif // MBED_CONF_NANOSTACK_CONFIGURATION && DEVICE_SPI && DEVICE_INTERRUPTIN && defined(MBED_CONF_RTOS_PRESENT)