Skip to content

Commit 34b4564

Browse files
authored
Merge pull request #10680 from artokin/allow_compilation_withoout_nanostack
Add compilation flags to rf_configuration
2 parents 99b1909 + 5e23fba commit 34b4564

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/802.15.4_RF/stm-s2lp-rf-driver/source/rf_configuration.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
17+
#if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI && DEVICE_INTERRUPTIN && defined(MBED_CONF_RTOS_PRESENT)
18+
1619
#include "nanostack/platform/arm_hal_phy.h"
1720
#include "rf_configuration.h"
1821

@@ -167,3 +170,6 @@ uint32_t rf_conf_calculate_deviation(phy_modulation_index_e modulation_index, ui
167170
}
168171
return deviation;
169172
}
173+
174+
#endif // MBED_CONF_NANOSTACK_CONFIGURATION && DEVICE_SPI && DEVICE_INTERRUPTIN && defined(MBED_CONF_RTOS_PRESENT)
175+

0 commit comments

Comments
 (0)