mirror of https://github.com/ARMmbed/mbed-os.git
Add MBED_CONF_RTOS_PRESENT guard to enable USBCDC_ECM class device only for MBED OS full profile.
parent
28ef7535e3
commit
d4e2d6961a
|
@ -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
|
||||||
|
|
|
@ -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)
|
Loading…
Reference in New Issue