Skip to content

Commit

Permalink
Merge pull request #12873 from rajkan01/usb_bare_metal_support
Browse files Browse the repository at this point in the history
Bare metal profile: USB class device support
  • Loading branch information
0xc0170 committed Apr 29, 2020
2 parents 6052b45 + adeae51 commit 4108cd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion drivers/USBCDC_ECM.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#ifndef USBCDC_ECM_H
#define USBCDC_ECM_H

#if defined(MBED_CONF_RTOS_PRESENT)
#include "USBDescriptor.h"
#include "USBDevice.h"
#include "ByteBuffer.h"
Expand Down Expand Up @@ -275,5 +276,5 @@ class USBCDC_ECM: public USBDevice {
};

/** @}*/

#endif // defined(MBED_CONF_RTOS_PRESENT)
#endif
3 changes: 2 additions & 1 deletion drivers/source/usb/USBCDC_ECM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#if defined(MBED_CONF_RTOS_PRESENT)
#include <stdint.h>
#include "USBCDC_ECM.h"
#include "EndpointResolver.h"
Expand Down Expand Up @@ -556,3 +556,4 @@ void USBCDC_ECM::_bulk_out_callback()

read_start(_bulk_out, _bulk_buf, MAX_PACKET_SIZE_BULK);
}
#endif // defined(MBED_CONF_RTOS_PRESENT)

0 comments on commit 4108cd2

Please sign in to comment.