コード例 #1
0
ファイル: pic32mx_nsh.c プロジェクト: cctsao1008/NuttX
static int nsh_usbdevinitialize(void)
{
  /* The Sure board has no way to know when the USB is connected.  So we
   * will fake it and tell the USB driver that the USB is connected now.
   */

  pic32mx_usbattach();
  return OK;
}
コード例 #2
0
ファイル: pic32mx_nsh.c プロジェクト: Nuages/terrarium_2015
static int nsh_usbdevinitialize(void)
{
  /* The PIC32 Starter Kit has no way to know when the USB is connected.  So
   * we will fake it and tell the USB driver that the USB is connected now.
   */

  pic32mx_usbattach();
  return OK;
}
コード例 #3
0
static int nsh_usbdevinitialize(void)
{
  /* The Mikroelektronika PIC32MX7 MMB has no way to know when the USB is
   * connected.  So we will fake it and tell the USB driver that the USB is
   * connected now.
   */

  pic32mx_usbattach();
  return OK;
}
コード例 #4
0
ファイル: pic32mx_usbterm.c プロジェクト: acassis/ros2_nuttx
int usbterm_devinit(void)
{
  /* The PIO32 Starter Kit has no way to know when the USB is connected.  So
   * we will fake it and tell the USB driver that the USB is connected now.
   *
   * If examples/usbterm is built as an NSH built-in application, then
   * pic32mx_usbattach() will be called in board_app_initialize().
   */

#ifndef CONFIG_NSH_BUILTIN_APPS
  pic32mx_usbattach();
#endif
  return OK;
}
コード例 #5
0
ファイル: up_usbterm.c プロジェクト: andrecurvello/NuttX
int usbterm_devinit(void)
{
  /* The Sure board has no way to know when the USB is connected.  So we
   * will fake it and tell the USB driver that the USB is connected now.
   *
   * If examples/usbterm is built as an NSH built-in application, then
   * pic32mx_usbattach() will be called in nsh_archinitialize().
   */

#ifndef CONFIG_EXAMPLES_USBTERM_BUILTIN
  pic32mx_usbattach();
#endif
  return OK;
}