MDK-ARM Keil, MDK-ARM Datasheet - Page 125

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
Endpoint pairs. Each Endpoint supports an IN and an OUT pipe. Consequently,
we define the maximum number of Endpoints as a multiple of 2. The next option
allows us to define the maximum packet size for Endpoint 0. The default transfer
size on Endpoint 0 is 8 bytes. As we will see later, this can be increased to a
maximum of 64 bytes, for faster transfer of data. Finally, if present, the
microcontroller DMA unit can be enabled and configured to transfer data to and
from selected Endpoint buffers.
#if USB_RESET_EVENT
#endif
Event Handlers
The next set of options in
configure the USB event handlers. We can
enable support for USB bus events. Depending
on the USB controller, these may be handled by
the USB controller hardware or may need
additional software support. Each enabled event
has a matching function in
functions, such as reset_ event() will be provided,
but optional functions, such as start of frame
event will be empty stubs, and you will need to
provide custom code. There are similar event handlers for each of the enabled
Endpoints. Each Endpoint function is responsible for maintaining the IN and
OUT buffers for the given Endpoint.
/**************************************************
*
**************************************************/
void USB_EndPoint1 (DWORD event)
}
void USB_Reset_Event (void)
}
switch (event)
}
usbuser.c
USB_ResetCore ();
case USB_EVT_IN:
case USB_EVT_OUT:
GetInReport ();
USB_WriteEP (0x81, &InReport, sizeof (InReport));
break;
USB_ReadEP (0x01, &OutReport);
SetOutReport ();
break;
{
usbcfg.h
usbuser.c
{
allows us to
. The critical
{
125

Related parts for MDK-ARM