summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2020-01-07 16:26:58 +0700
committerGitHub <[email protected]>2020-01-07 16:26:58 +0700
commit130250a2be309ecfe5cd68764a6f4b7a9cc4dfc7 (patch)
tree4e05aa80345fb803946e47a68896c21bff0aba63 /tools
parent5c5f876461e81ff7c2937978e4e6855e0208ebfb (diff)
parentd6a8d42bd6ed5ee1d9ea2e58128a3903dcd88d79 (diff)
Merge branch 'master' into nuc121
Diffstat (limited to 'tools')
-rw-r--r--tools/build_all.py2
-rw-r--r--tools/usb_drivers/99-tinyusb.rules18
-rw-r--r--tools/usb_drivers/tinyusb_win_usbser.inf (renamed from tools/windows_cdc_driver/tusb_usbser.inf)0
3 files changed, 19 insertions, 1 deletions
diff --git a/tools/build_all.py b/tools/build_all.py
index 9f35aac63..2ea898f45 100644
--- a/tools/build_all.py
+++ b/tools/build_all.py
@@ -36,7 +36,7 @@ for entry in os.scandir("hw/bsp"):
def build_example(example, board):
subprocess.run("make -C examples/device/{} BOARD={} clean".format(example, board), shell=True,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- return subprocess.run("make -j 8 -C examples/device/{} BOARD={} all".format(example, board), shell=True,
+ return subprocess.run("make -j 4 -C examples/device/{} BOARD={} all".format(example, board), shell=True,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
diff --git a/tools/usb_drivers/99-tinyusb.rules b/tools/usb_drivers/99-tinyusb.rules
new file mode 100644
index 000000000..334159f9a
--- /dev/null
+++ b/tools/usb_drivers/99-tinyusb.rules
@@ -0,0 +1,18 @@
+# Copy this file to the location of your distribution's udev rules, for example on Ubuntu:
+# sudo cp 99-tinyusb.rules /etc/udev/rules.d/
+# Then reload udev configuration by executing:
+# sudo udevadm control --reload-rules
+# sudo udevadm trigger
+
+# Check SUBSYSTEM
+SUBSYSTEMS=="hidraw", KERNEL=="hidraw*", MODE="0666", GROUP="dialout"
+
+# Rule applies to all TinyUSB example
+ATTRS{idVendor}=="cafe", MODE="0666", GROUP="dialout"
+
+# Rule to blacklist TinyUSB example from being manipulated by ModemManager.
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="cafe", ENV{ID_MM_DEVICE_IGNORE}="1"
+
+# Xplained Pro SamG55 Device
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2111", MODE="0666", GROUP="users", ENV{ID_MM_DEVICE_IGNORE}="1"
+SUBSYSTEMS=="tty", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2111", MODE="0666", GROUP="users", ENV{ID_MM_DEVICE_IGNORE}="1"
diff --git a/tools/windows_cdc_driver/tusb_usbser.inf b/tools/usb_drivers/tinyusb_win_usbser.inf
index e7f7a9b22..e7f7a9b22 100644
--- a/tools/windows_cdc_driver/tusb_usbser.inf
+++ b/tools/usb_drivers/tinyusb_win_usbser.inf