Merge pull request #12873 from rajkan01/usb_bare_metal_support

Bare metal profile: USB class device support
pull/12896/head
Martin Kojtal 2020-04-29 22:17:37 +02:00 committed by GitHub
commit 4108cd2c8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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"
@ -275,5 +276,5 @@ private:
};
/** @}*/
#endif // defined(MBED_CONF_RTOS_PRESENT)
#endif

View File

@ -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"
@ -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)