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 SPI peripheral system call driver to the 2.0 Tock API.

It also changes the SPI controller syscall driver to use CS2 rather than CS3 on imix. This is because CS3 is tied to the RF233. The driver originally was for a userspace RF233 driver, but since that transitioned into the kernel using CS3 causes it to conflict: SPI operations from userspace are answered by the RF233, and userspace can take control of the radio.

Testing Strategy

This pull request was tested by making a new test platform that provided peripheral syscalls through the SPI device and SPI controller syscalls through a USART device, connecting them, and testing operations.

TODO or Help Wanted

Nothing.

Documentation Updated

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

Formatting

  • Ran make prepush.

@phil-levis phil-levis added the tock-2.0 Issues and PRs related to Tock version 2.0. label Dec 30, 2020
@phil-levis
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 2, 2021

@bors bors bot merged commit 16133c6 into tock-2.0-dev Jan 2, 2021
@bors bors bot deleted the spi_peripheral_2.0 branch January 2, 2021 04:52
lschuermann pushed a commit to lschuermann/tock that referenced this pull request Mar 20, 2021
2316: Update SPI peripheral syscalls to 2.0 API r=phil-levis a=phil-levis

### Pull Request Overview

This pull request updates the SPI peripheral system call driver to the 2.0 Tock API.

It also changes the SPI controller syscall driver to use CS2 rather than CS3 on imix. This is because CS3 is tied to the RF233. The driver originally was for a userspace RF233 driver, but since that transitioned into the kernel using CS3 causes it to conflict: SPI operations from userspace are answered by the RF233, and userspace can take control of the radio.

### Testing Strategy

This pull request was tested by making a new test platform that provided peripheral syscalls through the SPI device and SPI controller syscalls through a USART device, connecting them, and testing operations.


### 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.

2 participants