コード例 #1
0
ファイル: USBDeviceMode.c プロジェクト: emcute0319/ir-usb-kbd
/** Event handler for the library USB Configuration Changed event. */
void EVENT_USB_Device_ConfigurationChanged(void)
{
	LEDs_SetAllLEDs(LEDMASK_USB_READY);

	if (!(MS_Device_ConfigureEndpoints(&Disk_MS_Interface)))
	  LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
}
コード例 #2
0
/** Event handler for the library USB Configuration Changed event. */
void EVENT_USB_Device_ConfigurationChanged(void)
{
	bool ConfigSuccess = true;

	ConfigSuccess &= MS_Device_ConfigureEndpoints(&Disk_MS_Interface);

	LEDs_SetAllLEDs(ConfigSuccess ? LEDMASK_USB_READY : LEDMASK_USB_ERROR);
}
コード例 #3
0
/** Event handler for the library USB Configuration Changed event. */
void EVENT_USB_Device_ConfigurationChanged(void)
{
	bool ConfigSuccess = true;

	/* Setup Mass Storage Data Endpoints */
	ConfigSuccess &= MS_Device_ConfigureEndpoints(&Disk_MS_Interface);

	/* Indicate endpoint configuration success or failure */
	LEDs_SetAllLEDs(ConfigSuccess ? LEDMASK_USB_READY : LEDMASK_USB_ERROR);
}
コード例 #4
0
ファイル: MassStorageKeyboard.c プロジェクト: DuinoPilot/lufa
/** Event handler for the library USB Configuration Changed event. */
void EVENT_USB_Device_ConfigurationChanged(void)
{
	bool ConfigSuccess = true;

	ConfigSuccess &= HID_Device_ConfigureEndpoints(&Keyboard_HID_Interface);
	ConfigSuccess &= MS_Device_ConfigureEndpoints(&Disk_MS_Interface);

	USB_Device_EnableSOFEvents();

	LEDs_SetAllLEDs(ConfigSuccess ? LEDMASK_USB_READY : LEDMASK_USB_ERROR);
}
コード例 #5
0
/** Event handler for the library USB Configuration Changed event. */
void EVENT_USB_Device_ConfigurationChanged(void)
{
	LEDs_SetAllLEDs(LEDMASK_USB_READY);

	if (!(MS_Device_ConfigureEndpoints(&Disk_MS_Interface)))
	  LEDs_SetAllLEDs(LEDMASK_USB_ERROR);

	if (!(HID_Device_ConfigureEndpoints(&Keyboard_HID_Interface)))
	  LEDs_SetAllLEDs(LEDMASK_USB_ERROR);

	USB_Device_EnableSOFEvents();
}
コード例 #6
0
ファイル: usb.c プロジェクト: JohnOH/phatio
void EVENT_USB_Device_ConfigurationChanged(void)
{
     bool success = true;
     success &= MS_Device_ConfigureEndpoints(&ms_device);
     success &= HID_Device_ConfigureEndpoints(&keyboard_device);
//     success &= CDC_Device_ConfigureEndpoints(&serial_device);

     USB_Device_EnableSOFEvents();

     if (!success) {
          led_error(USB_ERROR);
     }
}
コード例 #7
0
ファイル: MassStorage.c プロジェクト: nistumpe/Workspace
/** Event handler for the library USB Configuration Changed event. */
void EVENT_USB_Device_ConfigurationChanged(void)
{
	bool ConfigSuccess = true;

	ConfigSuccess &= MS_Device_ConfigureEndpoints(&Disk_MS_Interface);

    if (ConfigSuccess)
    {
        LED_on();
    }
    else
    {
        LED_off();
    }
}
コード例 #8
0
ファイル: MassStorage.c プロジェクト: Goodchaild/svofski
/**
 * @brief Event handler for the library USB Configuration Changed event
 * @return Nothing
 */
void EVENT_USB_Device_ConfigurationChanged(void)
{
	bool ConfigSuccess = true;

	ConfigSuccess &= MS_Device_ConfigureEndpoints(&Disk_MS_Interface);
}
コード例 #9
0
ファイル: MassStorage.c プロジェクト: akume/flysight
void EVENT_USB_Device_ConfigurationChanged(void)
{
	MS_Device_ConfigureEndpoints(&Disk_MS_Interface) ;
}