MDK-ARM Keil, MDK-ARM Datasheet - Page 127

KIT REALVIEW MCU DEVELOPMENT

MDK-ARM

Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Datasheets

Specifications of MDK-ARM

For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Getting Started: Building Applications with RL-ARM
const U8 USB_ConfigDescriptor[] =
};
In the configuration descriptor, you must define the device as self-powered,
USB_CONFIG_SELF_POWERED, or bus-powered
USB_CONFIG_BUS_POWERED. If the device is bus-powered, you must also
provide its power requirement in mill amperes divided by two. The
module also contains the string descriptors, which are uploaded to the host for
display when the device first enumerates.
Each character in the string descriptor is represented as a 16-bit Unicode
character and the overall length is the string length plus two.
If you are developing your own device driver for the PC, you can complete the
interface and Endpoint descriptors to match your device configuration. This will
allow the USB device to enumerate and begin communication with your device
driver. However, the RL-USB driver also includes support for standard USB
classes. This allows us to take advantage of the native USB driver within
Windows. The class support within RL-USB will meet the requirements of 80%
- 90% of most small, embedded systems. This route is far easier and faster than
developing your own device driver. A vast number of USB-based devices are
using these classes. This ensures that the native class device drivers within
Windows are very stable and will have guaranteed support and maintenance for
the near future.
Class Support
The RL-USB driver currently has support for the Human Interface Device (HID),
Mass Storage (MSC), Audio Device Class (ADC), and the legacy serial port in
the Communications Device Class (CDC). Each of the supported classes can be
enabled in the final section of
that must be added to your project.
USB_CONFIG_BUS_POWERED
USB_CONFIG_POWER_MA(100),
USB_INTERFACE_DESCRIPTOR_TYPE, // bDescriptorType
USB_ENDPOINT_DESCRIPTOR_TYPE,
usbcfg.h
// config descriptor
// bmAttributes
// bMaxPower
// config descriptor continued
// Interface descriptor
// bDescriptorType
// endpoint descriptor
. Each USB class has a custom C module
{
usbdesc.c
127

Related parts for MDK-ARM