센서보드 RF IRQ 테스트 중

Fork of stm-spirit1-rf-driver by ST

Files at this revision

API Documentation at this revision

Comitter:
Wolfgang Betz
Date:
Thu Jan 18 15:07:23 2018 +0100
Parent:
75:8dc65c09af67
Parent:
76:f4f990741baf
Child:
78:65de72417cd3
Child:
79:efe3f52f788d
Child:
80:3f90e1d76090
Commit message:
Merge pull request #3 from SeppoTakalo/skip

Skip compilation if FEATURE_NANOSTACK is not enabled

Changed in this revision

diff -r 8dc65c09af67 -r a9a9807bf3ed source/NanostackRfPhySpirit1.cpp
--- a/source/NanostackRfPhySpirit1.cpp	Fri Sep 01 08:51:04 2017 +0200
+++ b/source/NanostackRfPhySpirit1.cpp	Thu Jan 18 15:07:23 2018 +0100
@@ -1,6 +1,8 @@
+#include "NanostackRfPhySpirit1.h"
+
+#ifdef MBED_CONF_NANOSTACK_CONFIGURATION
 #if MBED_CONF_RTOS_PRESENT
 
-#include "NanostackRfPhySpirit1.h"
 #include "SimpleSpirit1.h"
 #include "nanostack/platform/arm_hal_phy.h"
 #include "platform/arm_hal_interrupt.h"
@@ -827,3 +829,4 @@
 }
 
 #endif /* MBED_CONF_RTOS_PRESENT */
+#endif /* MBED_CONF_NANOSTACK_CONFIGURATION */
\ No newline at end of file
diff -r 8dc65c09af67 -r a9a9807bf3ed stm-spirit1-rf-driver/NanostackRfPhySpirit1.h
--- a/stm-spirit1-rf-driver/NanostackRfPhySpirit1.h	Fri Sep 01 08:51:04 2017 +0200
+++ b/stm-spirit1-rf-driver/NanostackRfPhySpirit1.h	Thu Jan 18 15:07:23 2018 +0100
@@ -3,6 +3,8 @@
 
 #include <stdint.h>
 
+#ifdef MBED_CONF_NANOSTACK_CONFIGURATION
+
 #include "NanostackRfPhy.h"
 #include "PinNames.h"
 
@@ -51,4 +53,5 @@
     const PinName _brd_led;
 };
 
+#endif /* MBED_CONF_NANOSTACK_CONFIGURATION */
 #endif /* NANOSTACK_RF_PHY_SPIRIT1_H_ */