コード例 #1
0
ファイル: USBCore.cpp プロジェクト: niesteszeck/Arduino
int SendInterfaces()
{
	int total = 0;
	u8 interfaces = 0;

#ifdef CDC_ENABLED
	total = CDC_GetInterface(&interfaces);
#endif

#ifdef HID_ENABLED
	total += HID_GetInterface(&interfaces);
#endif

	return interfaces;
}
コード例 #2
0
ファイル: Core.cpp プロジェクト: Dzenik/Cosa
int 
SendInterfaces()
{
  int total = 0;
  uint8_t interfaces = 0;

#ifdef CDC_ENABLED
  total = CDC_GetInterface(&interfaces);
#endif

#ifdef HID_ENABLED
  total += HID_GetInterface(&interfaces);
#endif
  UNUSED(total);
  return (interfaces);
}