Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

phil-levis
Copy link
Contributor

Pull Request Overview

This pull request updates the i2c_master_slave_driver capsule to the 2.0 syscall API. It does not work on the tock-2.0-dev branch currently because of #2380 . When tested with #2380 it works. Given that the libtock-c API was using the wrong driver ID, I suspect this is not a critical system call driver (it only works on imix and isn't loaded by default), so we can merge this now and later merge in master/#2380.

Testing Strategy

This pull request was tested by changing the imix reset handler to use this driver on I2C1 and running the i2c_master_slave_ping_pong test with two imix. It works.

TODO or Help Wanted

Nothing.

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

@bradjc bradjc added the tock-2.0 Issues and PRs related to Tock version 2.0. label Jan 27, 2021
@phil-levis phil-levis changed the title Update master/slave driver to 2.0 syscall API. Update I2C master/slave driver to 2.0 syscall API. Jan 28, 2021
@phil-levis
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 28, 2021

@bors bors bot merged commit 1ef94d1 into tock-2.0-dev Jan 28, 2021
@bors bors bot deleted the i2c_master_slave_driver_2.0 branch January 28, 2021 23:38
lschuermann pushed a commit to lschuermann/tock that referenced this pull request Mar 20, 2021
2384: Update I2C master/slave driver to 2.0 syscall API. r=phil-levis a=phil-levis

### Pull Request Overview

This pull request  updates the `i2c_master_slave_driver` capsule to  the 2.0 syscall API. It does not work on the tock-2.0-dev branch currently because of tock#2380 . When tested with tock#2380 it works. Given that the libtock-c API was using the wrong driver ID, I suspect this is not a critical system call driver (it only works on imix and isn't loaded by default), so we can merge this now and later merge in master/tock#2380.  


### Testing Strategy

This pull request was tested by changing the imix reset handler to use this driver on I2C1 and running the `i2c_master_slave_ping_pong` test with two imix. It works.


### TODO or Help Wanted

Nothing.

### Documentation Updated

- [x] Updated the relevant files in `/docs`, or no updates are required.

### Formatting

- [x] Ran `make prepush`.


Co-authored-by: Philip Levis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tock-2.0 Issues and PRs related to Tock version 2.0.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants