Merge pull request #411 from Glass-Imaging/rp2_support

Add support for Raspberry Pi Pico
pull/432/head
kai-morich 2022-02-13 13:09:45 +01:00 zatwierdzone przez GitHub
commit dea836d8ce
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -32,4 +32,5 @@
<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 -->
</resources>

Wyświetl plik

@ -321,6 +321,10 @@ public class CdcAcmSerialDriver implements UsbSerialDriver {
new int[] {
UsbId.ST_CDC,
});
supportedDevices.put(UsbId.VENDOR_RASPBERRY_PI,
new int[] {
UsbId.RASPBERRY_PI_PICO_MICROPYTHON,
});
return supportedDevices;
}

Wyświetl plik

@ -69,6 +69,9 @@ public final class UsbId {
public static final int VENDOR_ST = 0x0483;
public static final int ST_CDC = 0x5740;
public static final int VENDOR_RASPBERRY_PI = 0x2e8a;
public static final int RASPBERRY_PI_PICO_MICROPYTHON = 0x0005;
private UsbId() {
throw new IllegalAccessError("Non-instantiable class");
}