
USB Basic Firmware <Short Sheet>
R01AN0495EJ0100 Rev.1.00 Page 8 of 32
Apr 15, 2011
3. Customized USB-BASIC-F/W Operations
USB-BASIC-F/W can operate as a USB driver to match the user system by modifying the scheduler macro
(“r_usbc_cItron.h” / “r_usbc_cMacSystemcall.h”), user defined information (“r_usbc_cDefUsr.h”/ “r_usb_cDefUsr.h”),
and nonOS settings (“r_usbc_cKernelId.h” / “main.c” / “r_usb_PSMPL_apl.c” / “r_usb2_HSMPL_apl.c”), and adding
the nonOS HDCD/PDCD to the MainLoop function.
For more details, refer to the RX62N Group USB Basic Firmware Instruction Manual.
3.1 User Definitions
To use a customized USB-BASIC-F/W, each user definition must be modified to match the user system.
USB-BASIC-F/W is set to default values and must be modified by the user as necessary. For more details, refer to the
Chapter 5 (User Definitions) in the RX62N Group USB Basic Firmware Instruction Manual.
3.1.1 H/W Function Selection/Project Selection
The USB-BASIC-F/W sample program comprises the following two HEW projects. Select the appropriate project as
needed.
NonOS_StdFw: nonOS version
Itron_StdFw: uITRON version
You can also customize the build configuration to fit your user system by selecting one of the following:
PORT0_P: use USB_PORT0 for peripheral functions
PORT1_H: use USB_PORT1 for host functions
PORT0_P_PORT1_H: use USB_PORT0 for peripheral functions and USB_PORT1 for host functions
The selected source files will be compiled.
Figure . 3.5 Figure 3.5 Project Selection Example (using HEW)
When NonOS_StdFw is
selected as the active project
Build configuration.can be customized.
Only the specified files will be compiled.
Comentarios a estos manuales