Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 146 of 157
Apr 1, 2013
8. uITRON system
8.1 Overvies
RTOS operations use the RX Family real time OS RI600/4, manufactured by Renesas Electronics. For details concerning
RI600/4, refer to the RI600/4 User’s Manual (RX Family Real Time OS).
8.2 GUI configurator
RTOS uses the GUI configurator packaged with RI600/4 to set the system definitions, time management, system
resources, and interrupt handlers.The GUI configurator uses this information to create settings in the configuration file.
The RTOS configuration file is stored in the RTOSCFG folder in the hardware resource folder (HwResourceForUSB).
8.3 uITRON system resource
Table 8-1 to Table 8-3 show the uITRON system resources used in the RX62N host sample program.
When installing a user-created class driver in USB-BASIC-FW, use the GUI configurator packaged with the RI600/4 to
add the information in these tables.
Table 8-1 Task Information
Task Name Task Address Priority
Stacksize
Initial Start Description
USB_SMP_TSK usb_cstd_main_task 8 512 ON Main Task
USB_HCD_TSK usb_hstd_HcdTask 3 512 OFF HCD Task
USB_MGR_TSK usb_hstd_MgrTask 5 512 OFF MGR Task
USB_HUB_TSK usb_hhub_Task 4 512 OFF HUBCD Task
USB_HSMP_TSK usb_hvendor_apl_task 8 512 OFF Application Task
USB_HVENDOR_TSK R_usb_hvendor_task 7 512 OFF Vendor Class Driver Task
Table 8-2 Mailbox Information
Mailbox Name Task Queue Message Queue Max Priority Description
USB_HCD_MBX FIFO order FIFO order 1 For HCD
USB_MGR_MBX FIFO order FIFO order 1 For MGR
USB_HUB_MBX FIFO order FIFO order 1 For HUBCD
USB_CLS_MBX FIFO order FIFO order 1 For HDCD
USB_ANSI_MBX FIFO order FIFO order 1 For ANSI
USB_HSMP_MBX FIFO order FIFO order 1 For Sample Application
USB_HVENDOR_MBX FIFO order FIFO order 1 For Vendor Class driver
Table 8-3 Fixed-Memory pool information
Memory Block Memory pool name Task Queue
Number of block Size
Description
USB_HCD_MPL FIFO order 10 64 For HCD
USB_MGR_MPL FIFO order 10 64 For MGR
USB_HUB_MPL FIFO order 10 64 For HUBCD
USB_CLS_MPL FIFO order 10 64 For HDCD
USB_HSMP_MPL FIFO order 10 64 For Sample Application
USB_HVENDOR_MPL FIFO order 10 64 For Vendor Class driver