Add MBED_CONF_RTOS_PRESENT guard to enable USBCDC_ECM class device only for MBED OS full profile.

pull/12873/head
Rajkumar Kanagaraj 2020-04-27 15:00:33 +01:00
parent 28ef7535e3
commit d4e2d6961a
2 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,7 @@
#ifndef USBCDC_ECM_H #ifndef USBCDC_ECM_H
#define USBCDC_ECM_H #define USBCDC_ECM_H
#if defined(MBED_CONF_RTOS_PRESENT)
#include "USBDescriptor.h" #include "USBDescriptor.h"
#include "USBDevice.h" #include "USBDevice.h"
#include "ByteBuffer.h" #include "ByteBuffer.h"
@ -275,5 +276,5 @@ private:
}; };
/** @}*/ /** @}*/
#endif // defined(MBED_CONF_RTOS_PRESENT)
#endif #endif

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#if defined(MBED_CONF_RTOS_PRESENT)
#include <stdint.h> #include <stdint.h>
#include "USBCDC_ECM.h" #include "USBCDC_ECM.h"
#include "EndpointResolver.h" #include "EndpointResolver.h"
@ -556,3 +556,4 @@ void USBCDC_ECM::_bulk_out_callback()
read_start(_bulk_out, _bulk_buf, MAX_PACKET_SIZE_BULK); read_start(_bulk_out, _bulk_buf, MAX_PACKET_SIZE_BULK);
} }
#endif // defined(MBED_CONF_RTOS_PRESENT)