'while-list' few more of CDC ACM compatible devices

pull/432/head
Linar Yusupov 2022-05-11 04:04:59 +00:00
rodzic cf9bada887
commit 17428f31ca
3 zmienionych plików z 37 dodań i 7 usunięć

Wyświetl plik

@ -26,11 +26,16 @@
<usb-device vendor-id="6790" product-id="29987" /> <!-- 0x7523: CH340 -->
<!-- CDC driver -->
<usb-device vendor-id="9025" /> <!-- 0x2341 / ......: Arduino -->
<usb-device vendor-id="5824" product-id="1155" /> <!-- 0x16C0 / 0x0483: Teensyduino -->
<usb-device vendor-id="1003" product-id="8260" /> <!-- 0x03EB / 0x2044: Atmel Lufa -->
<usb-device vendor-id="7855" product-id="4" /> <!-- 0x1eaf / 0x0004: Leaflabs Maple -->
<usb-device vendor-id="3368" product-id="516" /> <!-- 0x0d28 / 0x0204: ARM mbed -->
<usb-device vendor-id="1155" product-id="22336" /><!-- 0x0483 / 0x5740: ST CDC -->
<usb-device vendor-id="11914" product-id="5" /> <!-- 0x2E8A: Raspberry Pi Pico Micropython -->
<usb-device vendor-id="9025" /> <!-- 0x2341 / ......: Arduino -->
<usb-device vendor-id="5824" product-id="1155" /> <!-- 0x16C0 / 0x0483: Teensyduino -->
<usb-device vendor-id="1003" product-id="8260" /> <!-- 0x03EB / 0x2044: Atmel Lufa -->
<usb-device vendor-id="7855" product-id="4" /> <!-- 0x1eaf / 0x0004: Leaflabs Maple -->
<usb-device vendor-id="3368" product-id="516" /> <!-- 0x0d28 / 0x0204: ARM mbed -->
<usb-device vendor-id="1155" product-id="22336" /> <!-- 0x0483 / 0x5740: ST CDC -->
<usb-device vendor-id="11914" product-id="5" /> <!-- 0x2E8A: Raspberry Pi Pico Micropython -->
<usb-device vendor-id="11914" product-id="10" /> <!-- 0x2E8A: Raspberry Pi Pico Arduino BSP -->
<usb-device vendor-id="11914" product-id="61450" /><!-- 0x2E8A: Raspberry Pi generic RP2040 -->
<usb-device vendor-id="6790" product-id="21972" /> <!-- 0x55D4: Qinheng CH9102 -->
<usb-device vendor-id="9114" product-id="32809" /> <!-- 0x239A / 0x8029: Nordic nRF52840 DK -->
<usb-device vendor-id="7504" product-id="24713" /> <!-- 0x1D50 / 0x6089: OpenMoko HackRF One -->
</resources>

Wyświetl plik

@ -300,6 +300,7 @@ public class CdcAcmSerialDriver implements UsbSerialDriver {
UsbId.ARDUINO_MEGA_ADK_R3,
UsbId.ARDUINO_LEONARDO,
UsbId.ARDUINO_MICRO,
UsbId.ARDUINO_ZERO,
});
supportedDevices.put(UsbId.VENDOR_VAN_OOIJEN_TECH,
new int[] {
@ -324,6 +325,20 @@ public class CdcAcmSerialDriver implements UsbSerialDriver {
supportedDevices.put(UsbId.VENDOR_RASPBERRY_PI,
new int[] {
UsbId.RASPBERRY_PI_PICO_MICROPYTHON,
UsbId.RASPBERRY_PI_PICO_ARDUINO_BSP,
UsbId.RASPBERRY_PI_GENERIC_RP2040,
});
supportedDevices.put(UsbId.VENDOR_OPENMOKO,
new int[] {
UsbId.HACKRF_ONE,
});
supportedDevices.put(UsbId.VENDOR_NORDIC,
new int[] {
UsbId.NRF52840_DK,
});
supportedDevices.put(UsbId.VENDOR_QINHENG,
new int[] {
UsbId.QINHENG_CH9102,
});
return supportedDevices;
}

Wyświetl plik

@ -37,6 +37,7 @@ public final class UsbId {
public static final int ARDUINO_SERIAL_ADAPTER_R3 = 0x0044;
public static final int ARDUINO_LEONARDO = 0x8036;
public static final int ARDUINO_MICRO = 0x8037;
public static final int ARDUINO_ZERO = 0x804d;
public static final int VENDOR_VAN_OOIJEN_TECH = 0x16c0;
public static final int VAN_OOIJEN_TECH_TEENSYDUINO_SERIAL = 0x0483;
@ -61,6 +62,7 @@ public final class UsbId {
public static final int VENDOR_QINHENG = 0x1a86;
public static final int QINHENG_CH340 = 0x7523;
public static final int QINHENG_CH341A = 0x5523;
public static final int QINHENG_CH9102 = 0x55d4;
// at www.linux-usb.org/usb.ids listed for NXP/LPC1768, but all processors supported by ARM mbed DAPLink firmware report these ids
public static final int VENDOR_ARM = 0x0d28;
@ -71,6 +73,14 @@ public final class UsbId {
public static final int VENDOR_RASPBERRY_PI = 0x2e8a;
public static final int RASPBERRY_PI_PICO_MICROPYTHON = 0x0005;
public static final int RASPBERRY_PI_PICO_ARDUINO_BSP = 0x000a;
public static final int RASPBERRY_PI_GENERIC_RP2040 = 0xf00a;
public static final int VENDOR_OPENMOKO = 0x1d50;
public static final int HACKRF_ONE = 0x6089;
public static final int VENDOR_NORDIC = 0x239a;
public static final int NRF52840_DK = 0x8029;
private UsbId() {
throw new IllegalAccessError("Non-instantiable class");