MDK-ARM Keil, MDK-ARM Datasheet - Page 124

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
124
Chapter 5. RL-USB Introduction
First USB Project
The RL-USB driver may be used
standalone or with the RTX
RTOS. The RL-USB driver is
contained in four source modules
and one templated include file.
The bulk of the RL-USB driver
code is located in
.
usbcore.c
Generally, you do not need to
modify this code. The device-
specific code is located in
. A version of this file is provided for all supported microcontrollers.
usbhw.c
Any functions that need to be customized to handle USB bus events, such as
suspend and resume, are located in
. The USB descriptors are all located
usbuser.c
in
. The configuration options for the RL-USB driver are located in
usbdesc.c
. When using the RL-USB driver, you must always remember that all
usbcgf.h
configuration options are made on two levels. On one level, we are configuring
the hardware and providing the code to service the enabled Endpoints. On
another level, we are configuring the Device Descriptors to describe the hardware
configuration to the USB host.
Configuration
The configuration options in
are split into three main
usbcfg.h
categories. The first category is
the USB configuration section.
The entries in this section are
used to configure the USB
hardware. If you make any
changes here, you must also modify the USB descriptor strings. We will
examine the USB descriptors in the next section.
The first option allows you to define the device’s power source: either from a
local power supply or from the USB bus. Next, we can define the number of
interfaces. For a simple device, this will be one. However, if you are designing a
composite device, supporting more than one USB class, you will need an
interface for each supported class. Then, we must define the maximum number
of Endpoints used. In the RL-USB, stack Endpoints are defined as logical

Related parts for MDK-ARM