Renesas REJ10J1837-0100 Guía de instalación Pagina 24

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 35
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 23
USB Basic Firmware <Short Sheet>
R01AN0495EJ0100 Rev.1.00 Page 24 of 32
Apr 15, 2011
3.3.4 Example of Creating a Host Application
The following is an example of embedding a USB-BASIC-F/W data transfer sample application. . For more details, refer to
r_usb2_HSMPL_apl.c.
(1) Example of creating a main task
Figure. 3.7 Example of coding a Host Application(1)
“r_usb2_HSMPL_apl.c”
void usbc_cstd_MainTask(USBC_VP_INT stacd)
{
/* Sample application initial process */
usb2_hstd_MainInit(); Å USB function
Initialization(Start the HCD, Register the HDCD)
Refer to 3.3.4(2)
/* Idle Task Start process */
usbc_cstd_IdleTaskStart();
/* Sample application main loop process */
while( 1 )
{
usb2_hstd_MainLoop(); Å Mainloop(Application) Refert to 3.3.4(3)
/* Condition compilation by the difference of the operating system */
#if USBC_FW_PP == USBC_FW_NONOS_PP
/* Idle Task (sleep sample) */
usbc_cstd_IdleTask(0);
#endif /* USBC_FW_PP == USBC_FW_NONOS_PP */
}
}
Vista de pagina 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 34 35

Comentarios a estos manuales

Sin comentarios