Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebase upstream #1

Merged
merged 69 commits into from
Jul 29, 2021
Merged

rebase upstream #1

merged 69 commits into from
Jul 29, 2021

Commits on Jul 25, 2017

  1. Enumerator: Fixed go:generate comment

    It pointing to mksyscal_windows.go in local folder which already removed
    albenik authored and cmaglie committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    86b770d View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2017

  1. Merge pull request #36 from Lobaro/v1

    Windows: Set DTS via setCommState
    cmaglie authored Jul 28, 2017
    Configuration menu
    Copy the full SHA
    eae1344 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2018

  1. Configuration menu
    Copy the full SHA
    c702e0a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ee4586 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3c7a545 View commit details
    Browse the repository at this point in the history
  4. Removed duplicated methods on (nowadays) equivalent type C.io_*_t

    This is due to improvements on the cgo builder related to darwin OS.
    cmaglie committed Aug 19, 2018
    Configuration menu
    Copy the full SHA
    ef634e5 View commit details
    Browse the repository at this point in the history
  5. CFRef are no more internally represented as pointer but as integers

    This is due to improvements in CGO compiler for darwin OS
    cmaglie committed Aug 19, 2018
    Configuration menu
    Copy the full SHA
    75aa16d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ee147ff View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    71fe05a View commit details
    Browse the repository at this point in the history
  8. Removed extra parenthesis

    cmaglie committed Aug 19, 2018
    Configuration menu
    Copy the full SHA
    cdac3b3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6085517 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    338c399 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    de1714d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    e423395 View commit details
    Browse the repository at this point in the history
  13. Implementing compatibility with go latest

    This should allow darwin to be compatible with all the latest
    
    go1.7.x
    go1.8.x
    go1.9.x
    cmaglie committed Aug 19, 2018
    Configuration menu
    Copy the full SHA
    1c2446b View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2018

  1. Merge pull request #51 from bugst/osx-fix

    Fix 'darwin' build with latest releases of golang
    cmaglie authored Aug 23, 2018
    Configuration menu
    Copy the full SHA
    d759e28 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2018

  1. Added go1.11 to travis build

    cmaglie committed Aug 27, 2018
    Configuration menu
    Copy the full SHA
    d3b8f81 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    219de06 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #52 from bugst/osx-fix-again

    Fix osx build (again...)
    cmaglie authored Aug 27, 2018
    Configuration menu
    Copy the full SHA
    5f7892a View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2019

  1. Updated license years

    Updated to 2020 even if we are less than one month ahead.
    cmaglie committed Dec 2, 2019
    Configuration menu
    Copy the full SHA
    24a6610 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    df95023 View commit details
    Browse the repository at this point in the history
  3. Updates to readme

    cmaglie committed Dec 2, 2019
    Configuration menu
    Copy the full SHA
    f2a9ea9 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2019

  1. Configuration menu
    Copy the full SHA
    15b0a66 View commit details
    Browse the repository at this point in the history
  2. Added some cross-os builds

    cmaglie committed Dec 3, 2019
    Configuration menu
    Copy the full SHA
    96546e1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    88e0816 View commit details
    Browse the repository at this point in the history
  4. Updated build-passing badge

    cmaglie committed Dec 3, 2019
    Configuration menu
    Copy the full SHA
    d1a463e View commit details
    Browse the repository at this point in the history
  5. Transparently handle EINTR during Read

    This has been observed in particular on MacOS, in this case just retry
    the call without throwing the error back to the user.
    
    Related to:
    arduino/arduino-cli#504
    arduino/arduino-pro-ide#157
    cmaglie committed Dec 3, 2019
    Configuration menu
    Copy the full SHA
    6a673bf View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2020

  1. fixed API procSetupDiGetDeviceRegistryPropertyW

    confusingly, in this prototype Microsoft decided to split bufSize and reqSize
    giacomoberlin authored and cmaglie committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    900c828 View commit details
    Browse the repository at this point in the history
  2. completed retrievePortDetailsFromDevInfo

    in retrievePortDetailsFromDevInfo:
    - updated call to setupDiGetDeviceRegistryProperty with the same style used elsewhere (first get the reqSize, then call)
    - use of generic variable names, in case the function is extended to fetch other values than spdrpFriendlyName (or spdrpDeviceDesc)
    - re-enabled the assignment of details.Product
    giacomoberlin authored and cmaglie committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    4df0da8 View commit details
    Browse the repository at this point in the history
  3. Product in PortDetails struct

    un-commented Product member of the struct PortDetails. This goes with the pull request "completed retrievePortDetailsFromDevInfo #40". Apologies for not submitting together...
    giacomoberlin authored and cmaglie committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    f0d91f6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    820cffa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9f6eea0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f7a06a7 View commit details
    Browse the repository at this point in the history
  7. Do not return -1 from Read() and Write()

    Closes #55
    Andrey Demenev authored and cmaglie committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    1131ba5 View commit details
    Browse the repository at this point in the history
  8. allow Close() to be called from other goroutine than Read

    The only way to interrupt running Read() method of io.Reader is to call
    Close from another goroutine. What happens is that go runtime builtin
    race detector complains about unsynchronised access to "opened" member,
    which is set in Close and checked in Read.
    
    It doesn't seem to be dangerous, but 1) you never know, and 2) it makes
    your life more difficult when you need to debug some other data races in
    a complex project that uses serial.
    
    Proposed fix changes simple access to "opened" to atomic operations.
    It's also supposed to fix #38
    angri authored and cmaglie committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    1b760a8 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6500d68 View commit details
    Browse the repository at this point in the history
  10. Allow multiple calls to close

    niondir authored and cmaglie committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    545e830 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f0282e0 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    66bfced View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2020

  1. Updates to readme

    cmaglie committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    49ab90e View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2020

  1. Wait for socat to be ready before running full test.

    The -D option tells it to print something just before starting the
    transfer phase, which should be enough to ensure that all the file
    links are available without having to guess a suitable timeout.
    QuLogic authored and cmaglie committed Apr 26, 2020
    Configuration menu
    Copy the full SHA
    640e755 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2020

  1. Configuration menu
    Copy the full SHA
    f88d900 View commit details
    Browse the repository at this point in the history
  2. removed empty line

    Co-authored-by: Cristian Maglie <c.maglie@bug.st>
    lukasbeckercode and cmaglie committed May 8, 2020
    Configuration menu
    Copy the full SHA
    b015421 View commit details
    Browse the repository at this point in the history
  3. only check for newline instead of newline and carraiage return

    Co-authored-by: Cristian Maglie <c.maglie@bug.st>
    lukasbeckercode and cmaglie committed May 8, 2020
    Configuration menu
    Copy the full SHA
    578b2ec View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2020

  1. Configuration menu
    Copy the full SHA
    eb474d2 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2020

  1. small cosmetic fix

    cmaglie committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    00e63fc View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2021

  1. add support for darwin arm64

    Support arm64 which is used by the new lineup of computers
    from apple.
    
    Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
    tobiaskohlbau authored and cmaglie committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    57b513a View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2021

  1. update goselect to get riscv support

    cbrake authored and cmaglie committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    be77090 View commit details
    Browse the repository at this point in the history
  2. update go generate

    Replace old mkwinsyscall call by the new version which is recommended
    by Go since version 1.13.3.
    polomsky authored and cmaglie committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    e18766f View commit details
    Browse the repository at this point in the history
  3. Added support for macosx 10.11+

    Seems like, starting from 10.11, IOUSBDevice has been renamed to IOUSBHostDevice.
    cmaglie committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    b62cd23 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #101 from cmaglie/big-sur-support

    Added support for macosx 10.11+
    cmaglie authored Feb 26, 2021
    Configuration menu
    Copy the full SHA
    b6c28f7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    233eb2a View commit details
    Browse the repository at this point in the history
  6. Merge pull request #102 from cmaglie/go-generate-rerun

    Refresh run of go generate with the latest mksyscall
    cmaglie authored Feb 26, 2021
    Configuration menu
    Copy the full SHA
    388e793 View commit details
    Browse the repository at this point in the history
  7. run of go-fmt

    cmaglie committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    7183520 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    57ac200 View commit details
    Browse the repository at this point in the history
  9. Merge pull request #103 from cmaglie/windows-improve-usb-sernum-disc

    Windows improve usb serial number discovery
    cmaglie authored Feb 26, 2021
    Configuration menu
    Copy the full SHA
    383ed1c View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2021

  1. windows: correcly signal PortClosed error on blocked Read()

    This commit fix regression test TestConcurrentReadAndWrite.
    
    Even if the test checks purpose is another it has detected
    anyway that the returned error is incorrect.
    
    Another specific test for closing port detection will be added
    in the future.
    cmaglie committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    f355dbf View commit details
    Browse the repository at this point in the history
  2. linux: detect port disconnection during Read

    See https://stackoverflow.com/a/34945814/1655275
    
    > pselect signals that file descriptor is ready and
    > ioctl(fd, FIONREAD, &len) returns zero len.
    
    Failure to detect this condition has been revealed by
    the testsuite:
    
    === RUN   TestDisconnectingPortDetection
    2017/07/27 13:56:37 PR - Connecting to Probe
    2017/07/27 13:56:37      > Searching for port 2341:8037
    2017/07/27 13:56:37        Detected port '/dev/ttyACM0' 2341:8037
    2017/07/27 13:56:37        Using '/dev/ttyACM0'
    2017/07/27 13:56:37 Starting test (timeout 20s)
    2017/07/27 13:56:37 PR - Turn ON target
    2017/07/27 13:56:37 TR - Connecting to Target
    2017/07/27 13:56:37      > Searching for port 2341:8036
    2017/07/27 13:56:37        Detected port '/dev/ttyACM0' 2341:8037
    [...cut...]
    2017/07/27 13:56:46      > Searching for port 2341:8036
    2017/07/27 13:56:46        Detected port '/dev/ttyACM0' 2341:8037
    2017/07/27 13:56:46        Detected port '/dev/ttyACM1' 2341:8036
    2017/07/27 13:56:46        Using '/dev/ttyACM1'
    2017/07/27 13:56:46 T2 - Make a Read call
    2017/07/27 13:56:46 T1 - Delay 200ms before disconnecting target
    2017/07/27 13:56:46 T1 - Disconnect target
    2017/07/27 13:56:46 PR - Turn OFF target
    2017/07/27 13:56:46 T2 - Read returned: n=0 err=nil
    --- FAIL: TestDisconnectingPortDetection (9.18s)
            Error Trace:    serial_test.go:100
    	Error:		An error is expected but got nil. %s
    	Messages:	Read returned no errors
    
    this commit fix the problem above.
    cmaglie committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    a63b288 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2cb14f0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    23dbc8b View commit details
    Browse the repository at this point in the history
  5. Merge pull request #109 from cmaglie/timeouts

    Implementation of read timeouts
    cmaglie authored Jun 29, 2021
    Configuration menu
    Copy the full SHA
    01c367d View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2021

  1. Allow setting custom baudrates on serial ports (mac and linux version)

    Co-authored-by: Jan-Philipp Benecke <github@bnck.me>
    cmaglie and jpbede committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    cff9b23 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8ed18bb View commit details
    Browse the repository at this point in the history
  3. Added *bsd placeholders

    cmaglie committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    9d74cb0 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2021

  1. Merge pull request #111 from cmaglie/custom-baudrate

    Allow to set non-standard baud rates
    cmaglie authored Jul 1, 2021
    Configuration menu
    Copy the full SHA
    13b6f1a View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2021

  1. Fixed build for linux/ppc64le

    cmaglie committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    0213833 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2021

  1. Merge pull request #113 from cmaglie/fix-ppc64lebuild

    Fixed build for linux/ppc64le
    cmaglie authored Jul 20, 2021
    Configuration menu
    Copy the full SHA
    37dba3a View commit details
    Browse the repository at this point in the history
  2. Small update to docs

    cmaglie committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    9cebdc6 View commit details
    Browse the repository at this point in the history
  3. Updated license years

    cmaglie committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    adc54fb View commit details
    Browse the repository at this point in the history