Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Revision:
1:9db0e321a9f4
Parent:
0:5b88d5760320
--- a/features/cellular/framework/device/CellularStateMachine.h	Tue Dec 17 23:23:45 2019 +0000
+++ b/features/cellular/framework/device/CellularStateMachine.h	Tue Dec 31 06:02:27 2019 +0000
@@ -22,9 +22,11 @@
 #include "CellularCommon.h"
 #include "PlatformMutex.h"
 
+#ifdef MBED_CONF_RTOS_PRESENT
 namespace rtos {
 class Thread;
 }
+#endif
 
 namespace mbed {
 
@@ -159,6 +161,12 @@
     void send_event_cb(cellular_connection_status_t status);
     void change_timeout(const int &timeout);
 
+private:
+
+#ifdef MBED_CONF_RTOS_PRESENT
+    rtos::Thread *_queue_thread;
+#endif
+
     CellularDevice &_cellularDevice;
     CellularState _state;
     CellularState _next_state;
@@ -168,7 +176,6 @@
 
     CellularNetwork &_network;
     events::EventQueue &_queue;
-    rtos::Thread *_queue_thread;
 
     const char *_sim_pin;
     int _retry_count;