Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface FiapV2 HTTPClientForSOAP NTPClient TextLCD mbed-rtos mbed spxml
Fork of BlueUSB_f by
Diff: AutoEvents.cpp
- Revision:
- 1:3f2890d103fb
- Parent:
- 0:606b230e5b4a
- Child:
- 2:32a2d06f4fe2
--- a/AutoEvents.cpp Sat Apr 10 00:30:24 2010 +0000
+++ b/AutoEvents.cpp Wed Sep 26 06:29:47 2012 +0000
@@ -133,6 +133,12 @@
// Implemented in TestShell.cpp
int OnBluetoothInsert(int device);
+// Added by Y.Tauchi ------------------------------------
+// Implemented in usps.cpp
+int OnUspsInsert(int device);
+// -----------------------------------------------------------
+
+
void OnLoadDevice(int device, DeviceDescriptor* deviceDesc, InterfaceDescriptor* interfaceDesc)
{
printf("LoadDevice %d %02X:%02X:%02X\n",device,interfaceDesc->bInterfaceClass,interfaceDesc->bInterfaceSubClass,interfaceDesc->bInterfaceProtocol);
@@ -154,6 +160,12 @@
if (interfaceDesc->bInterfaceSubClass == 0x01 && interfaceDesc->bInterfaceProtocol == 0x01)
OnBluetoothInsert(device); // it's bluetooth!
break;
+ // Added by Y.Tauchi ------------------------------------
+ case CLASS_VENDOR_SPECIFIC:
+ if (interfaceDesc->bInterfaceSubClass == 0x01 && interfaceDesc->bInterfaceProtocol == 0x02)
+ OnUspsInsert(device); // it's USPS! (FUJITSU FX-5204PS)
+ break;
+// ----------------------------------------------------------
default:
StartAutoEvent(device,1,0);
break;
