From 74ad47b2691567b874974e0ffad11527d973012c Mon Sep 17 00:00:00 2001 From: Deepika Date: Mon, 26 Nov 2018 15:13:03 -0600 Subject: [PATCH] Fix header files used in 802.15.4_RF "ns_types.h" is not used, but included. Results in build failure when networking feature is ignored with .mbedignored "mbed_trace.h" not used. --- .../802.15.4_RF/stm-s2lp-rf-driver/source/rf_configuration.c | 5 +---- .../802.15.4_RF/stm-s2lp-rf-driver/source/rf_configuration.h | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/802.15.4_RF/stm-s2lp-rf-driver/source/rf_configuration.c b/components/802.15.4_RF/stm-s2lp-rf-driver/source/rf_configuration.c index 2ccfe85bfa..0e0045784a 100644 --- a/components/802.15.4_RF/stm-s2lp-rf-driver/source/rf_configuration.c +++ b/components/802.15.4_RF/stm-s2lp-rf-driver/source/rf_configuration.c @@ -13,11 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "ns_types.h" -#include "rf_configuration.h" -#include "mbed_trace.h" -#define TRACE_GROUP "rfcf" +#include "rf_configuration.h" // Note that F_XO and F_DIG depends on the used clock frequency #define F_XO 50000000 diff --git a/components/802.15.4_RF/stm-s2lp-rf-driver/source/rf_configuration.h b/components/802.15.4_RF/stm-s2lp-rf-driver/source/rf_configuration.h index e6869b2748..c48b370b6d 100644 --- a/components/802.15.4_RF/stm-s2lp-rf-driver/source/rf_configuration.h +++ b/components/802.15.4_RF/stm-s2lp-rf-driver/source/rf_configuration.h @@ -16,6 +16,9 @@ #ifndef RF_CONF_H_ #define RF_CONF_H_ + +#include + #ifdef __cplusplus extern "C" { #endif