Skip to content

Commit

Permalink
Merge pull request mik3y#411 from Glass-Imaging/rp2_support
Browse files Browse the repository at this point in the history
Add support for Raspberry Pi Pico
  • Loading branch information
kai-morich authored Feb 13, 2022
2 parents 896b242 + a2fa5f0 commit dea836d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions usbSerialExamples/src/main/res/xml/device_filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ public static Map<Integer, int[]> getSupportedDevices() {
new int[] {
UsbId.ST_CDC,
});
supportedDevices.put(UsbId.VENDOR_RASPBERRY_PI,
new int[] {
UsbId.RASPBERRY_PI_PICO_MICROPYTHON,
});
return supportedDevices;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit dea836d

Please sign in to comment.