Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bare metal profile: USB class device support #12873

Merged
merged 2 commits into from
Apr 29, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline missing

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you quickly update the file and we restart CI?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Please restart the CI