beautypg.com

Usb configuration, Nd usb configuration – Zilog EZ80F91AZA User Manual

Page 23

background image

UM007518-1211

USB Configuration

Zilog Real-Time Kernel: eZ80

®

CPU

User Manual

13

The format of this header file is

XXXXX_Driver.h

, in which

XXXXX

represents the

MT28F008, AM29LV160, AT49BV162 or IntFlash drivers that are located in the follow-
ing path:

\Program Files\Zilog\

ZDSII_eZ80Acclaim!_A.B.C\ZTP\ZTPX.Y.Z_Lib\RZK\Inc

USB Configuration

The configurable parameters for the USB driver are located in the

EZ80D12_conf.c

file.

This source file is located in the following path:

\Program Files\Zilog\

ZDSII_eZ80Acclaim!_A.B.C\ZTP\ZTPX.Y.Z_Lib\RZK\Conf

To change any USB device configuration parameters, include this file in the project and
set the appropriate values, as defined in Table 9. For more information about USB Specifi-
cation, refer to

www.usb.org

.

Table 9. Configurable USB Driver Parameters

Variable/Macro

Default Value

Description/Valid Values

EZ80D12_TASK_PRIO 16

Priority of USB thread.

EZ80D12_THD_STACK_SIZE

2048

Stack size of the USB interrupt thread.

g_remoteWakeUp

0x02

Remote wakeup is enabled and can wake up
the host during suspend.

G_powerStat

0x01

Decides if the device is Self powered or Bus
powered.

g_testMode

EZ80D12_SET_ZERO

Test mode allows the device to exhibit vari-
ous conditions.

gst_DevDescrip

Standard Device Descriptor.

gst_CompositDescrip

Composite Descriptor, which consists of Con-
figuration Descriptor + Interface Descriptor +
End Point Descriptor (EP2in + EP2Out).

This manual is related to the following products: