Increase delay for `tty.usbmodem` on macOS.

**Problems**

On macOS USB CDC ACM, which appears as `/dev/tty.usbmodem*`,
somehow `lxterm` keeps failing to send a payload.

**Solution**

Increase delay.

It's very unknown why to me, however, probably macOS USB CDC ACM
driver implementation issue.

**Testing**

Tested on MacBook Air (2020, M1) for OrangeCrab (rev.0.2) target
with Linux on LiteX SoC bitstream build from current commit and
load prebuild Linux On LiteX image.
This commit is contained in:
Yoshimasa Niwa 2021-07-05 11:42:29 -07:00
parent f9f1b8e25d
commit 0953c52eea
1 changed files with 3 additions and 0 deletions

View File

@ -314,6 +314,9 @@ class LiteXTerm:
if "ttyACM" in port:
self.payload_length = sfl_payload_length
self.delay = 1e-4
elif "tty.usbmodem" in port:
self.payload_length = sfl_payload_length
self.delay = 1e-3
else:
self.payload_length = 64
self.delay = 1e-5