Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 50 of 55
Aug 10, 2011
9. Including Resources in µITRON and Non-OS Versions
The methods of including resources when using the µITRON and non-OS versions are described below.
9.1
Including Resources in µITRON
When using the µITRON version (RI600), it is necessary to register tasks, mailboxes, memory pools, and interrupt
vectors in the ITRON configuration file.
After editing the configuration file, use the
mkritbl
command generate the file
ritable.src.
Delete the following lines
from the file and then add it to the project file.
Delete these lines: .GLB
__RI_DEFAULT_FINTHDR_0 to .GLB
__RI_DEFAULT_FINTHDR_19
.LWORD
__RI_DEFAULT_FINTHDR_0 to .LWOR __RI_DEFAULT_FINTHDR_19
9.1.1 MSC
Registration
In the sample program, the MSC Task is not used.
9.1.2 APL
Registration
In the sample program, the APL task is registered as follows. The priority is defined as the lowest level, except for idle
tasks.
task[]{
entry_address = u usbc_cstd_MainTask ();
name
=
USBC_SMP_TSK;
stack_size
=
2048;
stack_section =
SURI_STACK;
priority
=
8;
initial_start =
ON;
exinf
=
0x0;
};
9.1.3 MSC
Mailbox
Registration
In the sample program, the MSC mailbox is registered as follows.
mailBOX[]{
name
=
USB_HMSC_MBX;
wait_queue =
TA_TFIFO;
message_queue =
TA_MFIFO;
max_pri
=
1;
};
mailBOX[]{
name
=
USB_HMSCD_MBX2;
wait_queue =
TA_TFIFO;
message_queue =
TA_MFIFO;
max_pri
=
1;
}
;
Summary of Contents for R8A66597
Page 56: ......