Skip to content

Commit 4108cd2

Browse files
authored
Merge pull request #12873 from rajkan01/usb_bare_metal_support
Bare metal profile: USB class device support
2 parents 6052b45 + adeae51 commit 4108cd2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

drivers/USBCDC_ECM.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#ifndef USBCDC_ECM_H
1919
#define USBCDC_ECM_H
2020

21+
#if defined(MBED_CONF_RTOS_PRESENT)
2122
#include "USBDescriptor.h"
2223
#include "USBDevice.h"
2324
#include "ByteBuffer.h"
@@ -275,5 +276,5 @@ class USBCDC_ECM: public USBDevice {
275276
};
276277

277278
/** @}*/
278-
279+
#endif // defined(MBED_CONF_RTOS_PRESENT)
279280
#endif

drivers/source/usb/USBCDC_ECM.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
17+
#if defined(MBED_CONF_RTOS_PRESENT)
1818
#include <stdint.h>
1919
#include "USBCDC_ECM.h"
2020
#include "EndpointResolver.h"
@@ -556,3 +556,4 @@ void USBCDC_ECM::_bulk_out_callback()
556556

557557
read_start(_bulk_out, _bulk_buf, MAX_PACKET_SIZE_BULK);
558558
}
559+
#endif // defined(MBED_CONF_RTOS_PRESENT)

0 commit comments

Comments
 (0)